Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char x;
- char name[21];
- char address[31];
- char city[11];
- char state[6];
- char zip[6];
- char phone[12];
- cout << "Enter your name: ";
- cin.get(name, 21);
- cin.ignore(80, '\n');
- cout << "Enter your adress: ";
- cin.get(address, 31);
- cin.ignore(80, '\n');
- cout << "Enter your city: ";
- cin.get(city, 11);
- cin.ignore(80, '\n');
- cout << "Enter your state: ";
- cin.get(state, 6);
- cin.ignore(80, '\n');
- cout << "Enter your zip: ";
- cin.get(zip, 6);
- cin.ignore(80, '\n');
- cout << "Enter your phone number: ";
- cin.get(phone, 12);
- cin.ignore(80, '\n');
- cout << "------------------------------------------------------" << '\n';
- cout << "Your information is stated as follows: " << '\n';
- cout << name << '\n';
- cout << address << '\n';
- cout << city << ", " << state << ", " << zip << '\n';
- cout << phone << '\n';
- cin >> x;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement