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