// Sample program showing the use of the system function. // // It is assumed for THIS EXAMPLE that the command read will not // exceed 19 characters in length. // // The format of the system function is: // int system (const char *string); // See man system for more information on the system function. #include #include void main() { char command[20]; // Read in the command and display it cin.getline(command, 20, '\n'); cout << command << endl; // Execute the command system(command); }