- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int ans;
- cout << "超智障問答" <<endl;
- cout << "請問水是甚麼顏色?" ;
- cout << "(1)黃色 (2)紅色 (3)透明 (4)紫色" << endl;
- cout << "請作答:" ;
- cin >> ans ;
-
- switch(ans)
- {
- case 1:
- cout<<"去測一下你的智商吧!";
- break;
- case 2:
- cout<<"犯案現場請勿靠近!";
- break;
- case 3:
- cout<<"你的智商180!";
- break;
- case 4:
- cout<<"你喝水溝的水嗎?";
- break;
- default:
- cout<<"別亂打!";
- }
- cout<<endl;
- system("pause");
- return 0;
- }
複製代碼 |