// 24_24-1.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

#include "stdafx.h"
#include <iostream>
#include <windows.h>
#include <string>

using namespace std;

class Person {
public:
	string name;
	int age;
	void disp();
};

void Person::disp()
{
	cout << "名前=" << name << " 年齢=" << age << '\n';
}

int _tmain(int argc, _TCHAR* argv[])
{
	Person dt;

	dt.name = "山田一郎";
	dt.age = 30;
	dt.disp();

	MessageBox(NULL, _T("Check Console Window"), L"MessageBox", MB_OK);
	
	return 0;
}

