Advertisement
edensheiko

c++_phone_Class_pre_alpha

Mar 4th, 2021
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.02 KB | None | 0 0
  1. // There still bugs!!!!
  2. //will be fixed on 5.3.2021
  3. #include <iostream>
  4. #include "Phone.h"
  5. #include "CellPhone.h"
  6. #include "CellNoCam.h"
  7. using namespace std;
  8.  
  9. void main()
  10. {
  11.     cout << "***************welcome to phome Management System***************" << endl;
  12.    
  13.     Tryagain:;
  14.         int user_choise;
  15.         cout << "Hello customer please press your choise" << endl;
  16.         cout << "1 -> Line Phone." << endl;
  17.         cout << "2 -> Cell Phone." << endl;
  18.         cout << "3 -> Cell Phone no camera." << endl;
  19.         cout << "4 -> exit." << endl;
  20.         cin >> user_choise;
  21.         switch (user_choise)
  22.         {
  23.         case 1:
  24.             cout << "Line Phone was chosen" << endl;
  25.             //
  26.             //
  27.             //
  28.             break;
  29.         case 2:
  30.             cout << "Cell Phone was chosen" << endl;
  31.             //
  32.             //
  33.             //
  34.             break;
  35.         case 3:
  36.             cout << "Cell Phone no camera was chosen" << endl;
  37.             //
  38.             //
  39.             //
  40.             break;
  41.         case 4:
  42.             cout << "Have a nice day thank you for using our program" << endl;
  43.             break;
  44.            
  45.  
  46.         }
  47.         cout << "Error Worng number was pressed please try again" << endl;
  48.         goto Tryagain;
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement