// Ex5_16.cpp : main project file. // Receiving multiple command liner arguments. #include "stdafx.h" using namespace System; int main(array ^args) { Console::WriteLine(L"There were {0} command line arguments.", args->Length); Console::WriteLine(L"Command line arguments received are:"); int i = 1; for each(String^ str in args) Console::WriteLine(L"Argument {0}: {1}", i++, str); return 0; }