cGameChar::cGameChar() { this->name = ""; this->hp = 0; //メンバの初期化 this->mp = 0; //メンバの初期化 cout << "コンストラクタが呼ばれ、メンバが初期化されました" << endl; }