- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int answer;
- cout<<"<超腦殘問答>"<<endl;
- cout<<"雞有幾顆頭?(1)1顆(2)2顆(3)3顆(4)無限多顆"<<endl;
- cout<<"請作答!!!";
- cin>>answer;
- switch(answer)
- {
- case 1:
- cout<<"答對了!!好厲害!";
- break;
- case 2:
- cout<<"智商-10000000000";
- break;
- case 3:
- cout<<"恐怖啊!";
- break;
- case 4:
- cout<<"慘了!雞變成了怪物";
- break;
- default:
- cout<<"輸入錯誤!";
-
- }
- cout<<endl;
-
- system("pause");
- return 0;
- }
複製代碼 |