Hello everybody!
I'm trying to display the result of addition of vectors. But Builder shows the error after compilation (line 29). What should I change for in my code in order to find the problem?
Thanks in advance.
I think your problem is that std::cout doesn't recognize your CVector2D class. So you use the << operator for "Sum is equal", which it recognizes as a string, but then << c confuses it. If you added the x and y components of your vector in the class, you could do: