// 25_25-5.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

#include "stdafx.h"
#include <iostream>
#include <windows.h>

using namespace std;

class Csmp4 {
private:
	int x, y;
public:
	Csmp4(int n1 = 0, int n2 = 0);	// デフォルト値付き引数を利用
	void disp() {
		cout << "x=" << x << " y=" << y << '\n';
	}
};

Csmp4::Csmp4(int n1, int n2)
{
	x = n1;
	y = n2;
}

int _tmain(int argc, _TCHAR* argv[])
{
	Csmp4 b1;
	Csmp4 b2(100);
	Csmp4 b3 = 200;
	Csmp4 b4(300, 400);

	b1.disp();
	b2.disp();
	b3.disp();
	b4.disp();
	
	MessageBox(NULL, _T("Check Console Window"), L"MessageBox", MB_OK);

	return 0;
}

