Advertisement
Raqeeb_Alnakib

Smart CV

Oct 31st, 2019
12,979
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.86 KB | None | 0 0
  1. /*
  2.  
  3. Please, Don't Miss Visit My Site:
  4.  
  5.  
  6. https://global-prog.com
  7.  
  8.  
  9. */
  10.  
  11.  
  12. #include <iostream>;
  13. #include <string>;
  14. using namespace std;
  15.  
  16. int RV;
  17. string Name;
  18. string Age;
  19. string Address;
  20.  
  21.  
  22. void main()
  23. {
  24. cout << "*************************\nEnter the following info.\n*************************\n"<<endl;
  25.     for (RV = 1; RV <= 3; RV++) {
  26.  
  27.         switch (RV)
  28.         {
  29.         case (1):
  30.             cout << "Enter Name : ";
  31.             cin >> Name;
  32.             break;
  33.         case (2):
  34.             cout << "Enter Age : ";
  35.             cin >> Age;
  36.             break;
  37.         case (3):
  38.             cout << "Enter Address : ";
  39.             cin >> Address;
  40.             break;
  41.         default:
  42.             cout << " Error Undefined Input !!!" << endl;
  43.             break;
  44.         }
  45.     }
  46. cout << "\n********************\nYour Information Is\n********************\n"<<endl;
  47. cout << "Name : " << Name << endl;
  48. cout << "Age : " << Age << endl;
  49. cout << "Address : " << Address <<"\a\a\a"<< endl;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement