- #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;
- if(x == 1)
- {
- cout << "恭喜答錯";
- }
- else if(x == 2)
- {
- cout << "恭喜答錯";
- }
- else if(x == 3)
- {
- cout << "恭喜答對";
- }
- else if(x == 4)
- {
- cout << "恭喜答錯";
- }
- else
- {
- cout << "不要亂打";
- }
- system ("pause");
- return 0;
- }
複製代碼 |