How are you learning c++? You may like to look at these sites for more info
http://www.learncpp.com/
http://www.cplusplus.com/doc/tutorial/
Printable View
How are you learning c++? You may like to look at these sites for more info
http://www.learncpp.com/
http://www.cplusplus.com/doc/tutorial/
I have a book called C++ Early Objects. I'll look into those links as well though, thank you.
Yes
Guilty as charged:blush: In mitigation I was trying to identify a polymorphism bug at the time and I originally wrote
but this doesn't compile of course! (incompatible operand types) So I just quickly changed it toCode://Don't try this at home
std::cout << (last > str) ? *(last - 1) : "null";
Code:(last > str) ? std::cout << *(last - 1) : std::cout << "null";