継承について
Posted: 2012年9月30日(日) 15:34
現在C++について勉強中なのですが。継承をしようとした際に、 「クラス、構造体、共用体に既定のコンストラクターがありません。」
と表示されてコンパイルできません。どなたかアドバイスお願いします。
親クラス
と表示されてコンパイルできません。どなたかアドバイスお願いします。
親クラス
#include "SimpleDirect2dApplication.h"
#include "bullet.h"
class unit {
public:
ID2D1Bitmap *Graphic;
bullet *Blt;
TCHAR *NAME;
int HP;
float x;
float y;
int GetKey();
//////////////////////////////////////////////////////////
unit(class Graphic *app);
/*~unit();*/
private:
int shotlock;
};