国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(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++彩票模擬器的評論 (共 條)

分享到微博請遵守國家法律
宁乡县| 乐陵市| 家居| 龙口市| 福泉市| 邻水| 康保县| 嘉祥县| 拉萨市| 桐乡市| 东安县| 安多县| 抚宁县| 肥西县| 永丰县| 神农架林区| 宝清县| 安达市| 蚌埠市| 海安县| 台州市| 莆田市| 乌兰浩特市| 宜黄县| 宿松县| 东台市| 陈巴尔虎旗| 宜春市| 遵义县| 德格县| 灵川县| 灵武市| 常熟市| 桐乡市| 罗甸县| 九寨沟县| 永平县| 遂昌县| 铜陵市| 武夷山市| 宜兴市|