topical media & game development

talk show tell print

basic-program-code-05-Ex5-09.c

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


  // Ex5_09.cpp
  // Reading command line arguments
  include <iostream>
  using std::cout;
  using std::endl;
  
  int main(int argc, char* argv[])
  {
    cout << endl << "argc = " << argc << endl;
    cout << "Command line arguments received are:" << endl;
    for(int i = 0 ; i <argc ; i++)
      cout << "argument " << (i+1) << ": " << argv[i] << endl;
    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.