- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int main()
- {
- int x;
- cout << "英熊聯盟常識問答" << endl;
- cout << "作答說明"<< endl;
- cout << "題目共一題!!!全為選擇題,答案有1 2 3 4,輸入後按ENTER即可"<< endl;
- cout << "題目:英雄聯盟德邦中最硬的人是?"<< endl;
- cout << "答案一:歐拉夫 答案二:嘉文四世 答案三:趙信 答案四:泰達米爾"<< endl;
- cout << "請作答:"<< endl;
- cin >> x;
- switch(x)
- {
- case 1:
- cout << "答對了";
- break;
- case 2:
- cout << "你誰啊,砍一下就爆了";
- break;
- case 3:
- cout << "吃個菊花吧";
- break;
- case 4:
- cout << "我只不死,不代表我很硬啊";
- break;
-
- default:
- cout << "請不要輸入奇怪的答案";
- }
- system ("pause");
- return 0;
- }
複製代碼 |