Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //fix
- #include <iostream>
- #include "Phone.h"
- #include "CellPhone.h"
- #include "CellNoCam.h"
- using namespace std;
- int main()
- {
- cout << "|=============================|" << endl;
- cout << "| WELCOME TO |" << endl;
- cout << "| PHONE MANAGEMENT SYSTEM |" << endl;
- cout << "|=============================|" << endl;
- Tryagain:;
- cout << endl;
- string user_choise;
- cout << "Hello customer Please Enter Your Option:" << endl;
- cout << " 1 -> Line Phone." << endl;
- cout << " 2 -> Cell Phone." << endl;
- cout << " 3 -> Cell Phone no camera." << endl;
- cout << " 4 -> exit." << endl;
- cin >> user_choise;
- if (user_choise =="1")
- {
- cout << "Line Phone was chosen" << endl;
- }
- else if (user_choise == "2")
- {
- cout << "Cell Phone was chosen" << endl;
- }
- else if (user_choise == "3")
- {
- cout << "Cell Phone no camera was chosen" << endl;
- }
- else if (user_choise == "4")
- {
- cout << "Have a nice day thank you for using our program" << endl;
- return 0;
- }
- else
- {
- cout << "Error Worng number was pressed please try again" << endl;
- goto Tryagain;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement