- #include<cstdlib>
- #include<iostream>
- using namespace std;
- int main()
- {
- int Answer;
- cout << "請問一張60分考卷要給誰簽名?" << endl;
- cout << "1.老媽 2.老爸 3.外婆 4.阿嬤" << endl;
- cin >> Answer;
- switch (Answer)
- {
- case 1:
- cout << "從此以後,放學來迎接你的人,變成了補習班老師...";
- break;
- case 2:
- cout << "當你恢復意識時,你人早已在醫院...";
- break;
- case 3:
- cout << "外婆把這件事告訴了老媽...";
- break;
- case 4:
- cout << "阿嬤幫你簽了名";
- break;
- default:
- cout << "在你胡言亂語的此時,老媽得知了你今天有考試此事";
- break;
- }
- }
複製代碼 |