无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

C++彩票模擬器

2022-05-25 17:16 作者:大威的水杯  | 我要投稿

真的好久沒更新編程相關(guān)的視頻了,今天我就更一期。

鏈接:BV1W34y1j7ND(發(fā)專欄時可能沒發(fā))

代碼:

代碼塊版:

普通版:

#include <iostream>

#include <ctime>

#include <cmath>

#include <cstdlib>

#include <io.h>

#include <direct.h>

#include <fstream>

#include <unistd.h>

#include <string>

using namespace std;

int main()

{

srand(int(time(0)));

int a,add,daan[6],daans,chose[6],choses,right[6],rights;

cout<<"歡迎使用彩票機!請選擇功能:1查看規(guī)則 2開始下注"<<endl;?

cin>>a;

system("cls || clear");

if(a==1)

{

cout<<"規(guī)則:26選7,其中有6個普通號碼(a),1個特殊號碼(b)"<<endl;

sleep(1);

cout<<"獎項:\n全中 999萬\n5a+1b 888萬\n4a+1b或6a 666萬\n2a或3a或4a或5a或3a+1b或2a+1b 1000\n1a+1b 66\n其余:沒獎"<<endl;

sleep(1);

cout<<"備注:可以機選"<<endl;

sleep(1);

cout<<"重新運行以開始……"<<endl;

exit(0);?

}

if(a==2)

{

cout<<"請選擇模式:1機選 2自選"<<endl;

cin>>a;

system("cls || clear");

if(a==1)

{

for(int i=0;i<=5;i++)

{

chose[i]=rand()%26+1;

}

choses=rand()%26+1;

cout<<"下面公布機選結(jié)果:"<<endl;

for(int i=0;i<=5;i++)

{

cout<<chose[i]<<" ";

}?

cout<<choses;

sleep(5);

system("cls || clear");

}?

if(a==2)

{

for(int i=0;i<=5;i++)

{

cout<<"請輸入第"<<i+1<<"個數(shù)字:(1<=n<=26)"<<endl;

cin>>chose[i];

}

cout<<endl<<"請輸入第7個數(shù)字:(1<=n<=26)"<<endl;

cin>>choses;

system("cls || clear");

}

cout<<"選號完成!"<<endl;

sleep(2);

for(int i=0;i<=5;i++)

{

daan[i]=rand()%26+1;

}

daans=rand()%26+1;

cout<<"即將開獎!"<<endl;

for(int i=0;i<=5;i++)

{

cout<<"第"<<i+1<<"個數(shù)字將開獎,請輸入任意數(shù)字開獎:"<<endl;

cin>>a;

system("cls || clear");

cout<<"第"<<i+1<<"個數(shù)字是:"<<daan[i]<<endl;

sleep(3);

system("cls || clear");

}

cout<<"特殊數(shù)字將開獎,請輸入任意數(shù)字開獎:"<<endl;

cin>>a;

system("cls || clear");

cout<<"特殊數(shù)字是:"<<daans<<endl;

sleep(3);

system("cls || clear");

cout<<"開獎環(huán)節(jié)結(jié)束:即將公示你的獎項:"<<endl;

for(int i=0;i<=5;i++)

{

if((daan[i]==chose[0])or(daan[i]==chose[1])or(daan[i]==chose[2])or(daan[i]==chose[3])or(daan[i]==chose[4])or(daan[i]==chose[5]))

{

right[i]=1;

}

else

{

right[i]=0;

}

add=add+right[i];

}

if(daans==choses)

{

rights=1;

}

else

{

rights=0;

}

cout<<"普通號碼中獎數(shù):"<<add<<endl<<"特殊號碼:(1中0不中)"<<rights<<endl;

sleep(2);

cout<<"你的獲獎情況和獎金情況(a為普通號碼,b為特殊號碼):";?

if(add==6 and rights==1)

{

cout<<"全中 999萬"<<endl;

}

else if(add==5 and rights==1)

{

cout<<"5a+1b 888萬"<<endl;

}

else if((add==4 and rights==1)or(add==6 and rights==0))

{

cout<<"4a+1b或6a 666萬"<<endl;?

}

else if((add==2)or(add==3)or(add==4 and rights==0)or(add==5 and rights==0))

{

cout<<"2a或3a或4a或5a或3a+1b或2a+1b 1000"<<endl;

}

else if(add=1 and rights==1)

{

cout<<"1a+1b 66"<<endl;

}

else

{

cout<<"其余:沒獎"<<endl;

}

sleep(2);

cout<<"開獎完成!"<<endl;

sleep(2);

cout<<"感謝使用!"<<endl;?

sleep(2);

exit(0);

}

}?

本期視頻專欄到此結(jié)束,感謝觀看!

pis:文章中的“錢”僅為虛擬,不真實提供。

C++彩票模擬器的評論 (共 條)

分享到微博請遵守國家法律
会同县| 义乌市| 郴州市| 泊头市| 洞头县| 交口县| 建德市| 凌源市| 秭归县| 襄垣县| 方城县| 永春县| 徐州市| 社旗县| 内乡县| 上虞市| 西贡区| 岳阳县| 遂平县| 垦利县| 本溪市| 顺平县| 武义县| 天等县| 微山县| 克东县| 麦盖提县| 曲水县| 云林县| 桐梓县| 桃源县| 松阳县| 高州市| 商南县| 英山县| 孝义市| 铜鼓县| 泽库县| 崇阳县| 军事| 临武县|