C++ Teacher told me not to use pointers -


yesterday teacher told me not use pointers except if want program low level stuff. said garbage-collector me pointers unefficient , dangerous. i'm irritated because heard difference before.

so right , wrong? should use pointers or not? if not, why implemented if nobody uses it?

using garbage collector c++ requires strong discipline and, well, pretty competent programmers, added support garbage collection in c++11.

so possibly teacher meant else.

like, possibly he/she meant should preferentially use standard library containers (like vector, , string), , smart pointers handle ownership have deal pointers. that's advice.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -