// PrintArgs - write the arguments to the program // to the standard output #include #include int main(int nArg, char* pszArgs[]) { // print a warning banner cout << "The arguments to " << pszArgs[0] << "\n"; // now write out the remaining arguments for (int i = 1; i < nArg; i++) { cout << i << ":" << pszArgs[1] << "\n"; } // that's it cout << "That's it\n"; return 0; }