Well I changed the code to Anons first post but the same error still pops up:
#include <iostream>
using namespace std;
//------------------------------
//Point class begin...
Type: Posts; User: Sjiep
Well I changed the code to Anons first post but the same error still pops up:
#include <iostream>
using namespace std;
//------------------------------
//Point class begin...
This seems to do the trick, even tho it still gives the following warning:
warning: reference to local variable 'outV' returned
It does the trick and runs properly.
Thanks everyone for the...
Thanks for the reply, if I add the const to all the places you say it still comes up with the error. So that doesn't seem to do the trick.
However if I remove the operator= function the error...
Isn't it then strange that the code does work in .Net but doesn't in Xcode, I know they both have different compiler so there will be differences but isn't this just basic C++ that should work on...
Hi there,
I just started with programming in C++ with a video tutorial. Everything was going alright until i got to a weird compiler error while overloading the operator+ for a class I created...