Originally posted by quzah
cout and cin are classes. That makes it C++. There you have your answer. Furthermore, "<<" and ">>" are over ridden operators. Again, C++ code.
I can accept that definition if you want to be a purist about it. I just question the 'intent' that simply changing a printf into cout converts a program into C++ code. It only requires a C++ compiler but the code written is still C.

My definition of C++ is a little different. If only I/O is C++ and there are no other classes/methods used (either user-defined or other language-defined) I wouldn't count it as C++, as the above code is written.

In other words, if you teach your cat to bark (output) and eat dog food (input) that doesn't make him a dog. It would have to chase cars, chew bones, and have puppies before I'd call it Rover ;-)

Just an opinion, take it or leave it...
Walt