- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- char ans;
- cout<<"brainless question"<<endl;
- cout<<"999+1=?,(a)10(b)10000(c)1000"<<endl;
- cout<<"answer:"<<endl;
- cin>>ans;
- switch(ans)
- {
- case 'a':
- case 'A':
- cout<<"你腦殘嗎"<<endl;
- break;
- case 'b':
- case 'B':
- cout<<"你智障嗎"<<endl;
- break;
- case 'c':
- case 'C':
- cout<<"正確!"<<endl;
- break;
- default:
- cout<<"輸入錯誤!"<<endl;
- }
- system("pause");
- return 0;
- }
複製代碼 |