- #include<iostream>
- using namespace std;
- int main()
- {
- int a, s;
-
- stare:
- cout<<" "<<endl;
- cout<<"腦殘的腦殘問答!!!!! "<<endl;
- cout<<"(一)請問位什麼某故事中那位樵夫要說他掉的是普通的斧頭?"<<endl;
- cout<<"(1)因為它想要拿金銀斧頭(2)他很誠實(3)他不是人(4)他會預知未來"<<endl;
- cin>>a;
-
- if(a==1)
- {
- cout<<"笨蛋才不想拿(恭喜你答對了)!!!!"<<endl;
- }
- else if(a==2)
- {
- cout<<"鬼才誠實!!!!"<<endl;
- goto stare;
- }
- else if(a==3)
- {
- cout<<"!!!!(驚)"<<endl;
- goto stare;
- }
- else if(a==4)
- {
- cout<<"神人阿!!!!"<<endl;
- goto stare;
- }
- else
- {
- cout<<"您撥的電話是空號,請不要在撥謝謝。"<<endl;
- goto stare;
- }
-
-
- cout<<"腦殘的腦殘問答!!!!! "<<endl;
- stare2:
- cout<<"(二)請問鬼有幾隻腳?(1)100隻(2)5隻(3)4隻(4)不知道"<<endl;
- cin>>s;
-
-
- switch(s)
- {
- case 1:
- cout<<"蜈蚣幽靈!!!!"<<endl;
- goto stare2;
- break;
- case 2:
- cout<<"你看過五隻腳的動物嗎??"<<endl;
- goto stare2;
- break;
- case 3:
- cout<<"原來你是鬼!!!?"<<endl;
- goto stare2;
- break;
- case 4:
- cout<<"誠實的孩子你掉的是金斧頭還是銀斧頭!(大誤)"<<endl;
- break;
- default:
- cout<<"鬼阿!~~~~~~~~"<<endl;
- } goto stare2;
-
- system("pause");
- return 0;
- }
複製代碼 |