Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // address.cpp
- #include <iostream.h>
- #include "oostring.h"
- int main()
- {
- oostring name;
- oostring address;
- oostring city;
- oostring state;
- oostring zip;
- oostring phone;
- cout << "Enter the following personal information:" << endl;
- cout << "Name: ";
- getline(cin, name);
- cout << "Street Address: ";
- getline(cin, address);
- cout << "City: ";
- getline(cin, city);
- cout << "State: ";
- getline(cin, state);
- cout << "ZIP code (example: 79363-1151): ";
- getline(cin, zip);
- cout << "Phone number (example: 806-555-1000): ";
- getline(cin, phone);
- cout << endl << "The information you entered follows:" << endl;
- cout << name << endl;
- cout << address << endl;
- cout << city << ", " << state << " " << zip << endl;
- cout << phone << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment