- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main(){
- int option;
- cout<<"你有幾根毛?(1.一根 2.二根 3.三根 4.四根 5.無限多): ";
- cin>>option;
- switch(option)
- {
- case 1:
- cout<<"你一定是禿頭"<<endl;
- break;
- case 2:
- cout<<"最好數的出來"<<endl;
- break;
- case 3:
- cout<<"神經病不要數了"<<endl;
- break;
- case 4:
- cout<<"就叫你不要數了"<<endl;
- break;
- case 5:
- cout<<"不知道也別亂猜"<<endl;
- break;
- default:
- cout<<"病的不輕"<<endl;
- }
- system("pause");
- return 0;
- }
複製代碼 |