#include #include using namespace std; //using directive: may not be needed on your platform. int main(int argc, char **argv) { if (argc != 2) { cerr << argv[0]; cerr << ": requires 1 command line argument\n"; return EXIT_FAILURE; } cout << "I received the argument "; cout << argv[1]; cout << ".\n"; return EXIT_SUCCESS; }