// 13_13-3.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

#include "stdafx.h"
#include <iostream>
#include <windows.h>

using namespace std;

void disp_r(int &n);
void disp_r_cnst(const int &n);

int _tmain(int argc, _TCHAR* argv[])
{
	int a = 10;
	disp_r(a);
	//disp_r(20);	// エラー
	disp_r_cnst(a);
	disp_r_cnst(20);

	MessageBox(NULL, _T("Check Console Window"), L"MessageBox", MB_OK);

	return 0;
}

void disp_r(int &n)
{
	cout << "disp_r: " << n << '\n';
}

void disp_r_cnst(const int &n)
{
	cout << "disp_r_cnst: " << n << '\n';
}