返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main ()
  5. {
  6.     while (true)
  7.     {
  8.    
  9.    
  10.     int a=0;
  11.    

  12.         cout<<"請問游東X老師給你der第一映像如何?"<<endl;
  13.         cout<<"(1)很好,(2)還好,(3)爛,(4)看到就想罵髒話"<<endl;
  14.         cout<<"答:";
  15.         cin>>a;
  16.         
  17.     switch(a){
  18.         case 4:
  19.              cout<<"你4不4平常都考100分?!"<<endl;
  20.            break;
  21.            case 3:
  22.              cout<<"蠻聰明der嘛0~0"<<endl;
  23.            break;
  24.            
  25.            
  26.            
  27.            case 2:
  28.              cout<<"你4不4笨笨der?!"<<endl;
  29.            break;
  30.            case 1:
  31.              cout<<"眼光真差~"<<endl;
  32.            break;
  33.            
  34.            
  35.            default:
  36.                    cout<<"輸入錯誤dlifhlaehul"<<endl;
  37.                    cout<<"3"<<endl;
  38.                    cout<<"2"<<endl;
  39.            cout<<"1"<<endl;
  40.            cout<<"LOLOLOLOLOLOLOLOLOLOLOLOLOLOL"<<endl;
  41.            cout<<"you're HACKED!!!!!!! TROLLOLOLOLOL"<<endl;
  42.            break;
  43.            }
  44.            
  45.    
  46.    
  47.                 system ("pause");
  48.                 }
  49.         return 0;
  50. }
複製代碼

TOP

(2)
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main ()
  5. {
  6.     while (true)
  7.     {
  8.    
  9.    
  10.     int a=0;
  11.    

  12.         cout<<"請問李白屬於哪一個朝代?"<<endl;
  13.         cout<<"(1)鄭氏王朝,(2)唐朝,(3)漢朝,(4)中華民國朝"<<endl;
  14.         cout<<"答:";
  15.         cin>>a;
  16.         
  17.     switch(a){
  18.         case 4:
  19.              cout<<"你又看過李白了?"<<endl;
  20.            break;
  21.            case 3:
  22.              cout<<"三國演義看多了吧~(書呆子)"<<endl;
  23.            break;
  24.            case 2:
  25.              cout<<"你好棒棒!"<<endl;
  26.            break;
  27.            case 1:
  28.              cout<<"李白知道鄭成功?"<<endl;
  29.            break;
  30.            
  31.            
  32.            default:
  33.                    cout<<"輸入錯誤XXXXX010101010101010xoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxo開啟時光機"<<endl;
  34.                    cout<<"不明人士:嗨!我是李白!看這月亮那麼圓,陪我喝杯酒ㄅ"<<endl;
  35.                    cout<<"原來李白屬於中華民國朝OMG........."<<endl;
  36.       
  37.            break;
  38.            }
  39.            
  40.    
  41.    
  42.                 system ("pause");
  43.                 }
  44.         return 0;
  45. }
複製代碼

TOP

返回列表