- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int answer;
- cout<<"<腦殘問答>"<<endl;
- cout<<"請問你有幾隻手? (1)1隻 (2)5隻 (3)2隻 (4)9隻"<<endl;
- cin>>answer;
- switch(answer)
- {
- case 1:
- cout<<"笨蛋";
- break;
- case 2:
- cout<<"笨蛋";
- break;
- case 3:
- cout<<"答對了!阿不就好棒棒?";
- break;
- case 4:
- cout<<"笨蛋";
- break;
- default:
- cout<<"Error";
- }
-
- system("pause");
- return 0;
- }
複製代碼 |