My Node.h is
class Node{
private:
int x;
int y;
public:
Node();
Node(int x, int y);
void setXX( int x);
.....
}
In Node.cpp I am doing:
#include "Node.h"
#include "stdafx.h"
Node:: Node(){}
Node:: Node(int x, int y){
this->x = x;
this->y =y;
}
void Node::setXX(int x){
this->x = x;
}
}
I get the errors for all line :
Error 2 error C2653: 'Node' : is not a class or namespace name Error 3 error C2673: 'setXX' : global functions do not have 'this' pointers
I am using visual studio to compile? Any idea