Advertisement
Guest User

dlove

a guest
Apr 25th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1.  
  2. char x;
  3. char name[21];
  4. char address[31];
  5. char city[11];
  6. char state[6];
  7. char zip[6];
  8. char phone[12];
  9.  
  10. cout << "Enter your name: ";
  11.  
  12. cin.get(name, 21);
  13. cin.ignore(80, '\n');
  14.  
  15. cout << "Enter your adress: ";
  16.  
  17. cin.get(address, 31);
  18. cin.ignore(80, '\n');
  19.  
  20. cout << "Enter your city: ";
  21. cin.get(city, 11);
  22. cin.ignore(80, '\n');
  23.  
  24. cout << "Enter your state: ";
  25. cin.get(state, 6);
  26. cin.ignore(80, '\n');
  27.  
  28. cout << "Enter your zip: ";
  29. cin.get(zip, 6);
  30. cin.ignore(80, '\n');
  31.  
  32. cout << "Enter your phone number: ";
  33. cin.get(phone, 12);
  34. cin.ignore(80, '\n');
  35.  
  36. cout << "------------------------------------------------------" << '\n';
  37. cout << "Your information is stated as follows: " << '\n';
  38. cout << name << '\n';
  39. cout << address << '\n';
  40. cout << city << ", " << state << ", " << zip << '\n';
  41. cout << phone << '\n';
  42. cin >> x;
  43. return 0;
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement