#include <iostream>
usingnamespace std;
class X{
staticint x;
public:
void setx(int n){x = n;};
int getx(){return x;};
};
int main(){
X a,b;
a.setx(6);
b.getx();
cout << b.getx() <<endl;
return 0;
}
Currently i am testing how to use the static type variable. But now i am stucked by this error message. I have read some other forum, they said is the linker problem, but i don't really understand them...