開発環境 Microsoft Visual C++ 2010 Express (SP1)
実行環境 Microsoft Windows XP Home Edition (SP3)
プロジェクトの種類 空の CLR プロジェクト
プロジェクト名 clrcon

clrcon.cpp
using namespace System;
 
int main(array<String ^> ^args)
{
	int i = 0;
 
	for each (String^ s in args) {
		Console::WriteLine(L"{0}:{1}", i++, s);
	}
	Console::ReadLine();
	return 0;
}
 

出力
C:\>clrcon hello, world
0:hello,
1:world
最終更新:2012年09月14日 19:30