- #include<iostream>
- using namespace std;
- int main()
- {
- int answer;
-
- stare:
- cout<<" "<<endl;
- cout<<"腦殘的腦殘問答!!!!! "<<endl;
- cout<<"請問鬼有幾隻腳?(1)100隻(2)5隻(3)4隻(4)不知道"<<endl;
- cin>>answer;
- switch(answer)
- {
- case 1:
- cout<<"蜈蚣幽靈!!!!"<<endl;
- goto stare;
- break;
- case 2:
- cout<<"你看過五隻腳的動物嗎??"<<endl;
- goto stare;
- break;
- case 3:
- cout<<"原來你是鬼!!!?"<<endl;
- goto stare;
- break;
- case 4:
- cout<<"誠實的孩子你掉的是金斧頭還是銀斧頭!(大誤)"<<endl;
- break;
- default:
- cout<<"鬼阿!~~~~~~~~"<<endl;
- } goto stare;
-
- system("pause");
- return 0;
- }
複製代碼 |