返回列表 發帖
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
    re:
        int answer;
    string msg ;            
    cout<<"<腦殘時間>"<<endl;
    cout<<"蛇有幾隻腳?(1)一隻(2)兩隻(3)三隻(4)沒有腳"<<endl;         
    cin>>answer;
    switch(answer)
        {
      case 1 ... 3:
              msg = "一群白癡";
              break;
          case 4:
              msg = "阿不就好棒棒";
              break;
      default:
                msg = "error";
    }
    cout<<msg<<endl;
    goto re;
    system("pause");
    return 0;
}

TOP

返回列表