this is my class definition:
#include <iostream>
using namespace std;
class Math
{
private:
static int result;
public:
static int add( int a , int b)
{
result = a + b ;
return result;
};
};
this is the main:
#include <iostream>
#include "Amin.cpp"
using namespace std;
int main()
{
Math::add(2,3);
}
and i got these errors in visual studio:
error LNK2001: unresolved external symbol "private: static int Math::result" error LNK1120: 1 unresolved externals
best regards