// split_easy.cpp // Demonstration of the much simpler way to split from Koening/Moo text // Using a vector and indices. (page 91) // Ray S. Babcock 11/02/01 // #include #include int main(void) { string s; // read and split each line of input while (cin >> s) { cout << s << endl; } return 0; }