#include #include #include "apstring.h" // This shows a simple code that can be used by your driver program in // reading input. The assumption made here is that the last name in the line // is immediately followed by an end-of-line character. This assumption is ok // for the project. int main(){ apstring command, str1, str2; cin >> command; cin >> str1; if(cin.peek() != '\n'){ cin >> str2; cout << "The input contained a command and two names" << endl; } else cout << "The input contained a command and one name" << endl; return EXIT_SUCCESS; }