/* Echo all command-line arguments to the screen. */ #include #include using namespace std; int main(int argc, char *argv[]) { cout << "You entered the following command with " << argc-1 << " arguments: \n"; for (int i = 0; i < argc; ++i ) // Note: from 0 through argc-1 cout << argv[i] << ' '; cout << endl; return EXIT_SUCCESS; }