Hi there,

My name is Ciprian, I've been watching the C++ video tutorials. On my computer I have installed Microsoft Visual C++ 6.0 and it behaves different when I try to overload the << operator. I've written the same example which you explain into the Classes lesson. In your example works fine, however, when I try to compile it I get the following error message:

error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class Point' (or there is no acceptable conversion)

Same thing happens when I try to overload the >> operator. Can you guys give me a hint why it is behaving like this?

Thanks in advance.