This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: // remove those pesky end-of-lines. thirdLine = firstLine + secondLine cout << "First line:" << firstLine << " has length " << firstLine.length() << endl cout << "Second line:" << secondLine << " has length " << secondLine.length() << endl cout << "Third line:" << thirdLine << " has length " << thirdLine.length() << endl // input word, etc. here } // end while getline return 0 } Sheet1 Page 2 // read second line // create third string...
View Full Document
This note was uploaded on 03/05/2010 for the course DSDDDDDDD dddddfvvc taught by Professor Cxcseef during the Spring '10 term at École Normale Supérieure.
- Spring '10