// 21_21-4.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

#include "stdafx.h"
#include <iostream>
#include <windows.h>
#include <cctype>

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	int ch;

	while ((ch = cin.get()) != EOF) {	// 入力終了なら戻り値はEOFになる
		ch = toupper(ch);	// 大文字にする
		cout.put(ch);
	}

	MessageBox(NULL, _T("Check Console Window"), L"MessageBox", MB_OK);

	return 0;
}

