こんにちは私は2つのクラスAとBを持っています。AではBのヘッダーファイルを使用しているので、Bのインスタンスを作成できます(例:B * b)。クラスBで行っていることも、AのヘッダーファイルをインクルードしてAのインスタンスを作成します(例: A * a)inB。
AのヘッダーファイルをBにインクルードしている間、Ahで次のエラーが発生します
1>c:\Bibek\A.h(150) : error C2143: syntax error : missing ';' before '*'
1>c:\Bibek\A.h(150)(150) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\Bibek\A.h(150)(150) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int