//----------------------------------------------------------- // // cmdline.cpp // // A program with command line arguments // // Simon Parsons // // 8th February 2010 // //----------------------------------------------------------- // // Libraries etc. #include using namespace std; //----------------------------------------------------------- // // main // int main( int argc, char **argv ) { // Print out argc, the number of things on the command line cout << "argc = " << argc << endl; // Print out the members of argv, the things on the command line // as strings for ( int i=0; i