instring - cout<<"Enter your last name"...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// instring.cpp / #include <iostream.h> #include "apstring.h" # int main() { apstring FirstName; apstring LastName; cout << "Enter your first name: "; getline(cin, FirstName);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout << "Enter your last name: "; getline(cin, LastName); cout << "Your name is " << FirstName << " " << LastName << ".\n"; return 0; }...
View Full Document

This note was uploaded on 06/20/2011 for the course COMPUTING 379 taught by Professor Dr.anoopsarkar during the Spring '11 term at American College of Computer & Information Sciences.

Ask a homework question - tutors are online