// 25_25-17.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

#include "stdafx.h"
#include <iostream>
#include <windows.h>

using namespace std;

class ClsA {
private:
	int dt;
public:
	ClsA(int n) { dt = n; }
	void set(int n) { dt = n; }
	void disp() { cout << "dt=" << dt << '\n'; }
};

int _tmain(int argc, _TCHAR* argv[])
{
	const ClsA a(100);	// const指定した
	//a.set(200);	// コンパイルエラー
	//a.disp();		// コンパイルエラー
	
	MessageBox(NULL, _T("Check Console Window"), L"MessageBox", MB_OK);

	return 0;
}

