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