[Linux]
I have had a hard time understanding pointers beyond a simple array step through and modifying one address at a time. When I get into pointers to C-structures, C++-objects and classes my head starts to hurt. And that's just to name a few. I find the C syntax *++p
for instance to be very confusing, I would expect the syntax to look like this -> ++*p
. Why on earth would the pointer symbol * be pushed back and be seperated from it's pointer name with the increment operator in the middle? Anyway, here's what I'm wanting to know. I've recently read that C++ 11 makes dealing with pointers a lot easier, if that's the case does the current version of g++ support that aspect of the new C++ 11 standard? Or better yet, what version of g++ supports it if any?
I also recently ordered a book called 'Understanding and Using C Pointers' from amazon and now I'm wondering if I really need that book if C++ 11 and g++ have a better way. Thanks.