// Wyo C++ Ch. 6 Demo #4 // purpose - to illustrate how to efficiently obtain inputted words from one line of input #include <iostream.h>
#include "M:\C++ Programming\AP classes\apstring.h"
#include "M:\C++ Programming\AP classes\apvector.h" int main() { apvector <apstring> expression(5); int j = 0; while (cin) { cin >> expression[j]; cout << expression[j++] << " "; } cout << endl; getline(cin, expression[0]); cout << expression[0]; return 0; }// end of main