topical media & game development

talk show tell print


? / basic-program-code-05-Ex5-16.c

  // Ex5_16.cpp : main project file.
  // Receiving multiple command liner arguments.
  include <stdafx.h>
  using namespace System;
  int main(array<System::String ^> ^args)
    Console::WriteLine(L"There were {0} command line arguments.",
    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;

(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.