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