// Author: Keith Shomper // Date: 9/17/03 // Purpose: To demonstrate getline #include #include using namespace std; int main() { string s, t, u; // get two sentences (using the period as the terminating character) getline(cin, s, '.'); getline(cin, t, '.'); cout << s << endl; cout << t << endl; return 0; }