I have 3 classes coded in c++. They are all simple, but compiler gives alot error. Each class in a cpp file and header file. What can be the possible problems? One of it is "base class undefined".
class re {
int i;
int j;
string a;
re(int,int,int);
~re();
}
class Pre:public re {
int k;
public:
Pre(int,int,int);
~Pre();
}
class MPre:public Pre {
int z;
public:
MPre(int);
~Mpre(int);
}