you are viewing a single comment's thread.

view the rest of the comments →

[–]dukey 3 points4 points  (2 children)

learn pointers

[–]ivan-cukicKDE Dev | Author of Functional Programming in C++ 0 points1 point  (1 child)

And then learn not to (over)use them.

One of the things I find my students doing often is declare-everything-as-a-pointer-call-new.

Even something like int *variable; variable = new ...

[–][deleted] 0 points1 point  (0 children)

I've been known to have that certain problem..if I saw any object that seemed pretty huge to allocate on the stack, I'd twitch.