私はC++でコーディングされた3つのクラスを持っています。それらはすべて単純ですが、コンパイラーは多くのエラーを出します。cppファイルとヘッダーファイルの各クラス。考えられる問題は何ですか?その1つが「基本クラス未定義」です。
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);
}