Advertisement
edensheiko

c++_phone_Class_alpha_fix

Mar 5th, 2021
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.12 KB | None | 0 0
  1. //fix
  2.  
  3. #include <iostream>
  4. #include "Phone.h"
  5. #include "CellPhone.h"
  6. #include "CellNoCam.h"
  7. using namespace std;
  8.  
  9. int main()
  10. {
  11.     cout << "|=============================|" << endl;
  12.     cout << "|       WELCOME TO            |" << endl;
  13.     cout << "| PHONE MANAGEMENT SYSTEM     |" << endl;
  14.     cout << "|=============================|" << endl;
  15.    
  16.     Tryagain:;
  17.     cout << endl;
  18.  
  19.     string user_choise;
  20.     cout << "Hello customer Please Enter Your Option:" << endl;
  21.     cout << "  1 -> Line Phone." << endl;
  22.     cout << "  2 -> Cell Phone." << endl;
  23.     cout << "  3 -> Cell Phone no camera." << endl;
  24.     cout << "  4 -> exit." << endl;
  25.     cin >> user_choise;
  26.  
  27.     if (user_choise =="1")
  28.     {
  29.         cout << "Line Phone was chosen" << endl;
  30.     }
  31.  
  32.     else if (user_choise == "2")
  33.     {
  34.         cout << "Cell Phone was chosen" << endl;
  35.     }
  36.        
  37.     else if (user_choise == "3")
  38.     {
  39.         cout << "Cell Phone no camera was chosen" << endl;
  40.     }
  41.  
  42.     else if (user_choise == "4")
  43.     {
  44.         cout << "Have a nice day thank you for using our program" << endl;
  45.         return 0;
  46.     }
  47.     else
  48.     {
  49.         cout << "Error Worng number was pressed please try again" << endl;
  50.         goto Tryagain;
  51.     }
  52. }
  53.  
  54.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement