-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.h
27 lines (22 loc) · 787 Bytes
/
menu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*******This is the menu of the selection of the firewall *****************/
int print_title_cpp()
{
std::cout<<"*****Welcome using stateful firewall!*****"<<std::endl;
std::cout<<"Please enter the operation number you want:"<<std::endl;
std::cout<<"1.start to run the stateful firewall"<<std::endl;
std::cout<<"2.check all the web devices"<<std::endl;
std::cout<<"3.chech the state of the network connection"<<std::endl;
std::cout<<"4.recover or stop the network connection"<<std::endl;
std::cout<<"5.exit the program"<<std::endl;
int choice;
std::cin>>choice;
if(choice == 1 || choice == 2 || choice == 3 || choice == 4 || choice == 5)
return choice;
else{
std::cout<<"Sorry , you enter a wrong input"<<std::endl;
return 0;
}
}
// void print_title_c()
// {
// }