// 25_25-1.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

#include "stdafx.h"
#include <iostream>
#include <windows.h>

using namespace std;

class Csmp0 {
private:
	int x;
public:
	Csmp0();	// 引数のないコンストラクタ宣言
	void disp() {
		cout << "x=" << x << '\n';
	}
};

Csmp0::Csmp0()	// 引数のないコンストラクタ本体
{
	x = 999;
}

int _tmain(int argc, _TCHAR* argv[])
{
	Csmp0 dt;	// 999が初期化される
	dt.disp();

	MessageBox(NULL, _T("Check Console Window"), L"MessageBox", MB_OK);

	return 0;
}

