標題:
抽籤程式
[打印本頁]
作者:
tonyh
時間:
2015-5-23 10:30
標題:
抽籤程式
本帖最後由 tonyh 於 2015-5-30 10:40 編輯
發揮創意想想看, 抽籤程式在日生活中甚麼時候可以派上用場呢?
[attach]1253[/attach]
[attach]1254[/attach]
[attach]1256[/attach]
本帖隱藏的內容需要回復才可以瀏覽
作者:
李知易
時間:
2015-5-23 11:38
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
re:
system("cls");
string name[5]={"一顆頭顱","一顆0.2mm*0.2mm的小石頭","一個裡大蜷","一台時速0.0000001mm/h的布卡迪","裡大蜷的頭顱(有鮮血>_<)"};
int thing;
srand(time(NULL));
cout<<"***抽獎大會***"<<endl;
cout<<"這次抽獎你抽中什麼呢?"<<endl<<endl;
system("pause");
system("cls");
for(int i=0;i<=150;i++)
{
thing=rand()%5;
if(i%2==0)
cout<<"***抽獎中...***"<<endl;
else
cout<<"*******抽獎中...*******"<<endl;
cout<<name[thing]<<endl;
system("cls");
}
cout<<"你抽中:"<<name[thing]<<"!"<<endl<<endl;
system("pause");
goto re;
return 0;
}
複製代碼
作者:
李知易
時間:
2015-5-23 12:06
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
re:
system("cls");
string name[5]={"一顆頭顱","一顆0.2mm*0.2mm的小石頭","一個裡大蜷","一台時速0.0000001mm/h的布卡迪","裡大蜷的頭顱(有鮮血>_<)"};
int thing;
srand(time(NULL));
cout<<"***抽獎大會***"<<endl;
cout<<"這次抽獎你抽中什麼呢?"<<endl<<endl;
system("pause");
system("cls");
for(int i=0;i<=150;i++)
{
thing=rand()%5;
if(i%2==0)
cout<<"***抽獎中...***"<<endl;
else
cout<<"*******抽獎中...*******"<<endl;
cout<<name[thing]<<endl;
system("cls");
}
cout<<"你抽中:"<<name[thing]<<"!"<<endl<<endl;
int have;
cout<<"<1>要 <2>不要"<<endl;
cin>>have;
if(have==1)
cout<<"恭喜你得到"<<name[thing]<<"!"<<endl;
if(have==2)
cout<<"你拒絕了嗎?有機會再來唷!!"<<endl;
system("pause");
goto re;
return 0;
}
複製代碼
作者:
謝瀞儀
時間:
2015-5-23 17:47
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
re:
system("cls");
string name[7]={"吃下姬路瑞希的殺人料理","被島田美波以暴力虐殺","被霧島翔子路過電死","被悶聲色狼威脅自殺","被臭老太婆長玩死","被?本雄二精神虐待致死","被工藤愛子在飯裡偷偷下藥"};
srand(time(NULL));
int ball;
cout<<"來抽笨蛋吉井的死法..."<<endl;
cout<<"明久:等等等等一下!為什麼我要死!?"<<endl;
cout<<"雄二:因為你欠死"<<endl;
system("pause");
system("cls");
for(int i=1;i<=80;i++)
{
ball=rand()%7;
if(i%2==0)
cout<<"▏▎▍▌▋▊▉█... 抽死法中 ... █▉▊▋▌▍▎▏"<<endl;
else
cout<<"█▉▊▋▌▍▎▏... 抽死法中 ... ▏▎▍▌▋▊▉█"<<endl;
cout<<name[ball];
system("cls");
}
cout<<"吉井明久將要以"<<name[ball]<<"方式死亡"<<endl;
cout<<"明久:等等等等一下我還不想死啊啊啊啊啊啊!"<<endl
<<"雄二:你沒有選擇的餘地"<<endl
<<"明久:我未來的美好人生呢?"<<endl
<<"悶聲色狼:......(冷笑)"<<endl
<<"工藤愛子:否決 ?"<<endl;
system("pause");
goto re;
return 0;
}
複製代碼
作者:
洪振庭
時間:
2015-5-24 13:32
本帖最後由 洪振庭 於 2015-5-30 10:58 編輯
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
cout<<"古靈閣年度抽獎大會 大獎一千萬加隆"<<endl;
cout<<"(每次七十加隆)"<<endl;
re:
string name[5]={"痛苦麻瓜安樂死手術","免費爆尾釘蝦養育課","與佛地魔王一同遊玩","和巨人/龍生活夏令營","女催狂魔的深情之吻"};
int ball;
srand(time(NULL));
system("pause");
system("cls");
for(int i=0;i<=50;i++)
{
ball=rand()%5;
if(i%2==0)
cout<<"121抽取中212"<<endl;
else
cout<<"212抽取中121"<<endl;
cout<<name[ball]<<endl;
system("cls");
}
cout<<"恭喜抽中"<<name[ball]<<endl<<endl;
cout<<"(廣告)訂購古靈閣投資周刊請找古靈閣妖精"<<endl;
cout<<"古靈閣年度抽獎大會是騙錢活動。 傳言是騙人的"<<endl;
goto re;
system("pause");
return 0;
}
複製代碼
作者:
李知易
時間:
2015-5-24 17:13
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
allre:
system("cls");
int thing[5]={100,500,1000,5000,10000};
int dollers1;
int dollers2;
srand(time(NULL));
cout<<"***抽獎大會***"<<endl;
cout<<"第1次抽獎你抽中什麼呢?"<<endl<<endl;
system("pause");
system("cls");
for(int i=0;i<=150;i++)
{
dollers1=rand()%5;
if(i%2==0)
cout<<"***抽獎中...***"<<endl;
else
cout<<"*******抽獎中...*******"<<endl;
cout<<thing[dollers1]<<"元"<<endl;
system("cls");
}
cout<<"你抽中:"<<thing[dollers1]<<"元"<<"!"<<endl<<endl;
cout<<"第2次抽獎你抽中什麼呢?"<<endl<<endl;
system("pause");
system("cls");
for(int i=0;i<=150;i++)
{
dollers2=rand()%5;
if(i%2==0)
cout<<"***抽獎中...***"<<endl;
else
cout<<"*******抽獎中...*******"<<endl;
cout<<thing[dollers2]<<"元"<<endl;
system("cls");
}
cout<<"你抽中:"<<thing[dollers2]<<"元"<<"!"<<endl<<endl;
int have;
int shop;
cout<<"<1>要 <2>不要"<<endl;
cin>>have;
if(have==1)
{
cout<<"恭喜你得到"<<thing[dollers1]+thing[dollers2]<<"元"<<"!"<<endl;
cout<<"請問您要去購物中心購買商品嗎?"<<endl;
cout<<"<1>要 <2>不要"<<endl;
cin>>shop;
if(shop==1)
{
reset:
//system("cls");
int p,pay=0,popo,money,opt,sum=0;
string name[5]={"砍頭優惠卷","特效搖頭丸","自殺體驗卷","被打免費票","舒柔鼻涕蟲",};
int price[5]={200,500,5000,10000,10500};
cout<<"☆★☆智能玩具店☆★☆"<<endl<<endl;
cout<<"[商品價目表]"<<endl;
int qty[5]={0,0,0,0,0};
cout<<"你可以消費"<<thing[dollers1]+thing[dollers2]<<"元"<<"!"<<endl;
for(int i=0; i<5; i++)
{
cout<<"("<<i+1<<")"<<name[i]<<"\t"<<price[i]<<"元"<<endl;
}
cout<<"(8)結帳"<<endl<<endl;
re:
cout<<"請輸入商品代碼: ";
cin>>p;
if(p==8)
goto checkout;
else if(p>=1 && p<=7)
{
cout<<"數量: ";
cin>>popo;
if(popo<=0)
{
cout<<"輸入錯誤!"<<endl;
goto re;
}
sum+=price[p-1]*popo;
qty[p-1]+=popo;
}
else
{
cout<<"輸入錯誤!"<<endl;
}
goto re;
checkout:
cout<<endl<<"噁心清單"<<endl;
cout<<"----------------------------------"<<endl;
for (int i=0;i<5;i++)
{
if(qty[i]!=0)
cout<<name[i]<<"\t"<<price[i]<<"元 * "<<qty[i]<<"個"<<endl;
}
cout<<"----------------------------------"<<endl;
cout<<"總共"<<sum<<"元!"<<endl<<endl;
cout<<"1-正確無誤"<<endl<<"2-重新選購"<<endl;
cin>>opt;
if(opt==1)
{
goto change;
}
if(opt==2)
{
goto reset;
}
change:
/*
cout<<"請付錢:";
cin>>pay;
if(pay<=0)
{
cout<<endl<<"你是誰啊?!"<<endl<<endl;
goto change;
}
*/
if(sum>thing[dollers1]+thing[dollers2])
{
cout<<"騙人!!你明明只得到"<<thing[dollers1]+thing[dollers2]<<"元"<<"!"<<endl;
goto reset;
}
money=thing[dollers1]+thing[dollers2]-sum;
if(money==0)
{
cout<<endl<<"剛剛好! 銘謝惠顧!"<<endl<<endl;
}
else
{
cout<<endl<<"需找客人"<<money<<"元"<<endl<<endl;
if(money>=500)
{
cout<<"五百元鈔票"<<money/500<<"張"<<endl;
money%=500; //money=money%500;
}
if(money>=100)
{
cout<<"一百元鈔票"<<money/100<<"張"<<endl;
money%=100;
}
if(money>=50)
{
cout<<"五十元硬幣"<<money/50<<"枚"<<endl;
money%=50;
}
if(money>=10)
{
cout<<"十元硬幣"<<money/10<<"枚"<<endl;
money%=10;
}
if(money>=5)
{
cout<<"五元硬幣"<<money/5<<"枚"<<endl;
money%=5;
}
if(money>=1)
{
cout<<"一元硬幣"<<money<<"枚"<<endl;
}
cout<<endl;
}
}
if(shop==2)
{
cout<<"你拒絕了嗎?有機會再來唷!!"<<endl;
goto allre;
}
}
if(have==2)
cout<<"你拒絕了嗎?有機會再來唷!!"<<endl;
system("pause");
goto allre;
return 0;
}
複製代碼
作者:
李知易
時間:
2015-5-27 16:40
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
allre:
system("cls");
int thing[5]={100,500,1000,5000,10000};
int dollers1;
int dollers2;
srand(time(NULL));
cout<<"***抽獎大會***"<<endl;
cout<<"第1次抽獎你抽中什麼呢?"<<endl<<endl;
system("pause");
system("cls");
for(int i=0;i<=150;i++)
{
dollers1=rand()%5;
if(i%2==0)
cout<<"***抽獎中...***"<<endl;
else
cout<<"*******抽獎中...*******"<<endl;
cout<<thing[dollers1]<<"元"<<endl;
system("cls");
}
cout<<"你抽中:"<<thing[dollers1]<<"元"<<"!"<<endl<<endl;
cout<<"第2次抽獎你抽中什麼呢?"<<endl<<endl;
system("pause");
system("cls");
for(int i=0;i<=150;i++)
{
dollers2=rand()%5;
if(i%2==0)
cout<<"***抽獎中...***"<<endl;
else
cout<<"*******抽獎中...*******"<<endl;
cout<<thing[dollers2]<<"元"<<endl;
system("cls");
}
cout<<"你抽中:"<<thing[dollers2]<<"元"<<"!"<<endl<<endl;
int have;
int shop;
int player1;
cout<<"<1>要 <2>不要"<<endl;
cin>>have;
if(have==1)
{
cout<<"恭喜你得到"<<thing[dollers1]+thing[dollers2]<<"元"<<"!"<<endl;
cout<<"請問您要去購物中心購買商品嗎?"<<endl;
cout<<"<1>要 <2>不要"<<endl;
cin>>shop;
if(shop==1)
{
reset:
system("cls");
int p,pay=0,popo,money,opt,sum=0;
string name[5]={"砍頭優惠卷","特效搖頭丸","自殺體驗卷","被打免費票","舒柔鼻涕蟲",};
int price[5]={200,500,5000,10000,10500};
cout<<"☆★☆智能玩具店☆★☆"<<endl<<endl;
cout<<"[商品價目表]"<<endl;
int qty[5]={0,0,0,0,0};
cout<<"你可以消費"<<thing[dollers1]+thing[dollers2]<<"元"<<"!"<<endl;
for(int i=0; i<5; i++)
{
cout<<"("<<i+1<<")"<<name[i]<<"\t"<<price[i]<<"元"<<endl;
}
cout<<"(8)結帳"<<endl<<endl;
re:
cout<<"請輸入商品代碼: ";
cin>>p;
if(p==8)
goto checkout;
else if(p>=1 && p<=7)
{
cout<<"數量: ";
cin>>popo;
if(popo<=0)
{
cout<<"輸入錯誤!"<<endl;
goto re;
}
sum+=price[p-1]*popo;
qty[p-1]+=popo;
}
else
{
cout<<"輸入錯誤!"<<endl;
}
goto re;
checkout:
cout<<endl<<"噁心清單"<<endl;
cout<<"----------------------------------"<<endl;
for (int i=0;i<5;i++)
{
if(qty[i]!=0)
cout<<name[i]<<"\t"<<price[i]<<"元 * "<<qty[i]<<"個"<<endl;
}
cout<<"----------------------------------"<<endl;
cout<<"總共"<<sum<<"元!"<<endl<<endl;
cout<<"1-正確無誤"<<endl<<"2-重新選購"<<endl;
cin>>opt;
if(opt==1)
{
goto change;
}
if(opt==2)
{
goto reset;
}
change:
/*
cout<<"請付錢:";
cin>>pay;
if(pay<=0)
{
cout<<endl<<"你是誰啊?!"<<endl<<endl;
goto change;
}
*/
if(sum>thing[dollers1]+thing[dollers2])
{
cout<<"騙人!!你明明只得到"<<thing[dollers1]+thing[dollers2]<<"元"<<"!"<<endl;
goto reset;
}
money=thing[dollers1]+thing[dollers2]-sum;
if(money==0)
{
cout<<endl<<"剛剛好! 銘謝惠顧!"<<endl<<endl;
}
else
{
cout<<endl<<"需找客人"<<money<<"元"<<endl<<endl;
if(money>=500)
{
cout<<"五百元鈔票"<<money/500<<"張"<<endl;
money%=500; //money=money%500;
}
if(money>=100)
{
cout<<"一百元鈔票"<<money/100<<"張"<<endl;
money%=100;
}
if(money>=50)
{
cout<<"五十元硬幣"<<money/50<<"枚"<<endl;
money%=50;
}
if(money>=10)
{
cout<<"十元硬幣"<<money/10<<"枚"<<endl;
money%=10;
}
if(money>=5)
{
cout<<"五元硬幣"<<money/5<<"枚"<<endl;
money%=5;
}
if(money>=1)
{
cout<<"一元硬幣"<<money<<"枚"<<endl;
}
cout<<endl;
}
}
if(shop==2)
{
cout<<"還有剪刀石頭布的遊戲您要玩嗎?"<<endl;
cout<<"(1)我要去玩 (2)謝謝!下次再來玩"<<endl;
cin>>player1;
if(player1==1)
{
goto pp;
}
if(player1==2)
{
goto allre;
}
}
}
if(have==2)
{
cout<<"你拒絕了嗎?有機會再來唷!!"<<endl;
system("pause");
goto allre;
}
srand(time(NULL));
pp:
system("cls");
int g, c, sum2=0, lose=0, same=0;
alllre:
string name[5]={"改去購物中心","退出遊戲","剪刀","石頭","布"};
cout<<"請選擇! <1>改去購物中心 <2>退出遊戲 <3>剪刀 <4>石頭 <5>布 <6>戰績歸零 <7>觀看結果 ";
cin>>g;
if(g==7)
goto result;
else if(g==6)
goto pp;
else if(g==1)
goto reset;
else if(g==2)
goto allre;
else
{
cout<<"你出"<<name[g-1]<<"!"<<endl;
c=rand()%3+3;
cout<<"電腦出"<<name[c-1]<<"!"<<endl;
if(g-c==1)
{
cout<<"你贏了!!"<<endl;
sum2+=1;
}
else if(g-c==-2)
{
cout<<"你贏了!!"<<endl;
sum2+=1;
}
else if(c==g)
{
cout<<"平手!!"<<endl;
same+=1;
}
else
{
cout<<"你輸了!!"<<endl;
lose+=1;
}
system("pause");
goto pp;
}
result:
cout<<"***戰果統計***"<<endl;
cout<<"總共贏了"<<sum2<<"次"<<endl;
cout<<"總共平手"<<same<<"次"<<endl;
cout<<"總共輸了"<<lose<<"次"<<endl;
system("pause");
goto pp;
return 0;
}
複製代碼
作者:
李知易
時間:
2015-5-28 20:30
本帖最後由 tonyh 於 2015-5-30 11:06 編輯
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int sum2=0, lose=0, same=0;
allre:
system("cls");
int thing[5]={100,500,1000,5000,10000};
int dollers1;
int dollers2;
srand(time(NULL));
cout<<"***抽獎大會***"<<endl;
cout<<"第1次抽獎你抽中什麼呢?"<<endl<<endl;
system("pause");
system("cls");
for(int i=0;i<=150;i++)
{
dollers1=rand()%5;
if(i%2==0)
cout<<"***抽獎中...***"<<endl;
else
cout<<"*******抽獎中...*******"<<endl;
cout<<thing[dollers1]<<"元"<<endl;
system("cls");
}
cout<<"你抽中:"<<thing[dollers1]<<"元"<<"!"<<endl<<endl;
cout<<"第2次抽獎你抽中什麼呢?"<<endl<<endl;
system("pause");
system("cls");
for(int i=0;i<=150;i++)
{
dollers2=rand()%5;
if(i%2==0)
cout<<"***抽獎中...***"<<endl;
else
cout<<"*******抽獎中...*******"<<endl;
cout<<thing[dollers2]<<"元"<<endl;
system("cls");
}
cout<<"你抽中:"<<thing[dollers2]<<"元"<<"!"<<endl<<endl;
int have;
int shop;
int player1;
cout<<"<1>要 <2>不要"<<endl;
cin>>have;
if(have==1)
{
cout<<"恭喜你得到"<<thing[dollers1]+thing[dollers2]<<"元"<<"!"<<endl;
cout<<"請問您要去購物中心購買商品嗎?"<<endl;
cout<<"<1>要 <2>不要"<<endl;
cin>>shop;
if(shop==1)
{
reset:
system("cls");
int p,pay=0,popo,money,opt,sum=0;
string name[5]={"砍頭優惠卷","特效搖頭丸","自殺體驗卷","被打免費票","舒柔鼻涕蟲",};
int price[5]={200,500,5000,10000,10500};
cout<<"☆★☆智能玩具店☆★☆"<<endl<<endl;
cout<<"[商品價目表]"<<endl;
int qty[5]={0,0,0,0,0};
cout<<"你可以消費"<<thing[dollers1]+thing[dollers2]<<"元"<<"!"<<endl;
for(int i=0; i<5; i++)
{
cout<<"("<<i+1<<")"<<name[i]<<"\t"<<price[i]<<"元"<<endl;
}
cout<<"(8)結帳"<<endl<<endl;
re:
cout<<"請輸入商品代碼: ";
cin>>p;
if(p==8)
goto checkout;
else if(p>=1 && p<=7)
{
cout<<"數量: ";
cin>>popo;
if(popo<=0)
{
cout<<"輸入錯誤!"<<endl;
goto re;
}
sum+=price[p-1]*popo;
qty[p-1]+=popo;
}
else
{
cout<<"輸入錯誤!"<<endl;
}
goto re;
checkout:
cout<<endl<<"噁心清單"<<endl;
cout<<"----------------------------------"<<endl;
for (int i=0;i<5;i++)
{
if(qty[i]!=0)
cout<<name[i]<<"\t"<<price[i]<<"元 * "<<qty[i]<<"個"<<endl;
}
cout<<"----------------------------------"<<endl;
cout<<"總共"<<sum<<"元!"<<endl<<endl;
cout<<"1-正確無誤"<<endl<<"2-重新選購"<<endl;
cin>>opt;
if(opt==1)
{
goto change;
}
if(opt==2)
{
goto reset;
}
change:
/*
cout<<"請付錢:";
cin>>pay;
if(pay<=0)
{
cout<<endl<<"你是誰啊?!"<<endl<<endl;
goto change;
}
*/
if(sum>thing[dollers1]+thing[dollers2])
{
cout<<"騙人!!你明明只得到"<<thing[dollers1]+thing[dollers2]<<"元"<<"!"<<endl;
goto reset;
}
money=thing[dollers1]+thing[dollers2]-sum;
if(money==0)
{
cout<<endl<<"剛剛好! 銘謝惠顧!"<<endl<<endl;
}
else
{
cout<<endl<<"需找客人"<<money<<"元"<<endl<<endl;
if(money>=500)
{
cout<<"五百元鈔票"<<money/500<<"張"<<endl;
money%=500; //money=money%500;
}
if(money>=100)
{
cout<<"一百元鈔票"<<money/100<<"張"<<endl;
money%=100;
}
if(money>=50)
{
cout<<"五十元硬幣"<<money/50<<"枚"<<endl;
money%=50;
}
if(money>=10)
{
cout<<"十元硬幣"<<money/10<<"枚"<<endl;
money%=10;
}
if(money>=5)
{
cout<<"五元硬幣"<<money/5<<"枚"<<endl;
money%=5;
}
if(money>=1)
{
cout<<"一元硬幣"<<money<<"枚"<<endl;
}
cout<<endl;
system("pause");
}
}
if(shop==2)
{
cout<<"還有剪刀石頭布的遊戲您要玩嗎?"<<endl;
cout<<"(1)我要去玩 (2)謝謝!下次再來玩"<<endl;
cin>>player1;
if(player1==1)
{
goto pp;
}
if(player1==2)
{
goto allre;
}
}
}
if(have==2)
{
cout<<"你拒絕了嗎?有機會再來唷!!"<<endl;
system("pause");
goto allre;
}
srand(time(NULL));
pp:
system("cls");
int g, c;
alllre:
string name[5]={"改去購物中心","退出遊戲","剪刀","石頭","布"};
cout<<"請選擇! <1>去中信彩券行 <2>退出遊戲 <3>剪刀 <4>石頭 <5>布 <6>戰績歸零 <7>觀看結果 ";
cin>>g;
if(g==7)
goto result;
else if(g==6)
{
sum2=0; lose=0; same=0;
goto pp;
}else if(g==1)
goto d;
else if(g==2)
goto allre;
else
{
cout<<"你出"<<name[g-1]<<"!"<<endl;
c=rand()%3+3;
cout<<"電腦出"<<name[c-1]<<"!"<<endl;
if(g-c==1)
{
cout<<"你贏了!!"<<endl;
sum2+=1;
}
else if(g-c==-2)
{
cout<<"你贏了!!"<<endl;
sum2+=1;
}
else if(c==g)
{
cout<<"平手!!"<<endl;
same+=1;
}
else
{
cout<<"你輸了!!"<<endl;
lose+=1;
}
system("pause");
goto pp;
}
result:
cout<<"***戰果統計***"<<endl;
cout<<"總共贏了"<<sum2<<"次"<<endl;
cout<<"總共平手"<<same<<"次"<<endl;
cout<<"總共輸了"<<lose<<"次"<<endl;
system("pause");
goto pp;
d:
system("pause");
srand(time(NULL));
int lotol, can;
cout<<"歡迎來到中信彩券行"<<endl;
cout<<"請輸入一個數(1~10):"<<endl;
cin>>lotol;
for(int i=1;i>=0;i++)
{
cout<<"你已被電腦病毒侵犯>_<!"<<"/a"<<"/n"<<endl;
}
system("pause");
return 0;
}
複製代碼
作者:
梁和雋
時間:
2015-5-30 10:31
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
re:
int a;
system("cls");
string name[5]={"MAD","nightcore","動漫OP","VK克","蘇打綠"};
int ball;
srand(time(NULL));
cout<<"要聽哪首歌"<<endl;
system("pause");
system("cls");
for(int i=0;i<=100;i++)
{
ball=rand()%5;
if(i%2==0)
cout<<"dsa抽取中asd"<<endl;
else
cout<<"asd抽取中dsa"<<endl;
cout<<name[ball]<<endl;
system("cls");
}
cout<<"聽"<<name[ball]<<endl;
system("pause");
goto re;
return 0;
}
複製代碼
作者:
李大全
時間:
2015-5-30 10:35
#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
re:
system("cls");
string name[7]={"吃下姬路瑞希的殺人料理","被島田美波以暴力虐殺","被霧島翔子路過電死","被悶聲色狼威脅自殺","被臭老太婆長玩死","被?本雄二精神虐待致死","被工藤愛子在飯裡偷偷下藥"};
srand(time(NULL));
int ball;
cout<<"來抽笨蛋吉井的死法..."<<endl;
cout<<"久:等等等等一下!為什麼我要死!?"<<endl;
cout<<"二:因為你欠死"<<endl;
system("pause");
system("cls");
for(int i=1;i<=80;i++)
{
ball=rand()%7;
if(i%2==0)
cout<<"▏▎▍▌▋▊▉█... 抽死法中 ... █▉▊▋▌▍▎▏"<<endl;
else
cout<<"█▉▊▋▌▍▎▏... 抽死 法中 ... ▏▎▍▌▋▊▉█"<<endl;
cout<<name[ball];
system("cls");
}
cout<<"明久將要以"<<name[ball]<<"方式"<<endl;
cout<<"明:等等等等一下我還不想啊啊啊啊啊啊!"<<endl
<<"雄:你沒有選擇的餘地"<<endl
<<"明:我未來的美好人生呢?"<<endl
<<"色狼:......(冷笑)"<<endl
<<"工1:否決 ?"<<endl;
system("pause");
goto re;
return 0;
}
複製代碼
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://seed.istak.org.tw/)
Powered by Discuz! 7.2