土豆英雄抽传说卡程序(非土豆英雄玩家不要看)
最近玩随机冲突土豆英雄玩的很爽,于是就心血来潮,模拟开宝箱的画面,编了一个开宝箱的程序(未出新英雄前将不会更新)(具体宝箱里英雄个数未核实过游戏)
远古宝箱:
void yg(){string pt[8]={"弹弓小子","独眼阿呆","毒镖猎手","法师学徒","炸弹人","飞刀侠","白银矿工","火枪手"};string xy[9]={"黑市商人","迷你忍者","木乃伊","快抢牛仔","酒仙","狂野射手","圣骑士","陷阱猎手","氪金大佬"};string jy[14]={"魔术师","共鸣奥术师","炼金师","无面怪杰","冒险家","三清道人","镭射战士","战斗鼓手","血镖忍者","御风者","小偷","热能恐龙","死神a","巫毒术士"}; string cs[32]={"炎魔","爆破大师","百花仙子","恶魔猎手","冥王","暴风雪法师","金牌厨师","雪山领主","太阳神","海怪船长","众神之王","暗s者","小丑","审判天使","生命之源","牛魔王","谜语人","吟游诗人","狂战士","召唤祭司","灵魂使者","枪械大师","时间绅士","幽灵","零号机","无双战神","克隆博士","阴阳师","皇家警卫","齐天大圣","蛇发女妖","守护天使"};srand(time(0));string a=pt[rand()%8];string b=xy[rand()%9];string c=jy[rand()%14];//Pneumonoultramicroscopicsilicovolcanoconiosis int d=rand()%2;printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 普通 │\n") ; printf("\t\t\t\t\t│ %s │\n",a.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *48");system("pause");system("cls");a=pt[rand()%8];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 普通 │\n") ; printf("\t\t\t\t\t│ %s │\n",a.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *48");system("pause");system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 稀有 │\n") ; printf("\t\t\t\t\t│ %s │\n",b.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *26");system("pause"); system("cls"); b=xy[rand()%9];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 稀有 │\n") ; printf("\t\t\t\t\t│ %s │\n",b.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *26");system("pause");system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 精英 │\n") ; printf("\t\t\t\t\t│ %s │\n",c.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *4");system("pause");system("cls");c=jy[rand()%14];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 精英 │\n") ; printf("\t\t\t\t\t│ %s │\n",c.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *4");system("pause");system("cls");if(d==0){string e=cs[rand()%32];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ ? │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *1");int x=time(0);while(time(0)-x<5);system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 传说 │\n") ; printf("\t\t\t\t\t│ %s │\n",e.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *1");system("pause");system("cls");}
}
黄金宝箱:
void hj(){string pt[8]={"弹弓小子","独眼阿呆","毒镖猎手","法师学徒","炸弹人","飞刀侠","白银矿工","火枪手"};string xy[9]={"黑市商人","迷你忍者","木乃伊","快抢牛仔","酒仙","狂野射手","圣骑士","陷阱猎手","氪金大佬"};string jy[14]={"魔术师","共鸣奥术师","炼金师","无面怪杰","冒险家","三清道人","镭射战士","战斗鼓手","血镖忍者","御风者","小偷","热能恐龙","死神a","巫毒术士"}; string cs[32]={"炎魔","爆破大师","百花仙子","恶魔猎手","冥王","暴风雪法师","金牌厨师","雪山领主","太阳神","海怪船长","众神之王","暗s者","小丑","审判天使","生命之源","牛魔王","谜语人","吟游诗人","狂战士","召唤祭司","灵魂使者","枪械大师","时间绅士","幽灵","零号机","无双战神","克隆博士","阴阳师","皇家警卫","齐天大圣","蛇发女妖","守护天使"};srand(time(0));string a=pt[rand()%8];string b=xy[rand()%9];string c=jy[rand()%14];int d=rand()%10;printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 普通 │\n") ; printf("\t\t\t\t\t│ %s │\n",a.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *27");system("pause");system("cls");a=pt[rand()%8];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 普通 │\n") ; printf("\t\t\t\t\t│ %s │\n",a.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *27");system("pause");system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 稀有 │\n") ; printf("\t\t\t\t\t│ %s │\n",b.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *11");system("pause"); system("cls"); b=xy[rand()%9];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 稀有 │\n") ; printf("\t\t\t\t\t│ %s │\n",b.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *11");system("pause");system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 精英 │\n") ; printf("\t\t\t\t\t│ %s │\n",c.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *2");system("pause");system("cls");if(d==0){string e=cs[rand()%32];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ ? │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *1");int x=time(0);while(time(0)-x<5);system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 传说 │\n") ; printf("\t\t\t\t\t│ %s │\n",e.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *1");system("pause");system("cls");}
}
铂金宝箱:
void bj(){string pt[8]={"弹弓小子","独眼阿呆","毒镖猎手","法师学徒","炸弹人","飞刀侠","白银矿工","火枪手"};string xy[9]={"黑市商人","迷你忍者","木乃伊","快抢牛仔","酒仙","狂野射手","圣骑士","陷阱猎手","氪金大佬"};string jy[14]={"魔术师","共鸣奥术师","炼金师","无面怪杰","冒险家","三清道人","镭射战士","战斗鼓手","血镖忍者","御风者","小偷","热能恐龙","死神a","巫毒术士"}; string cs[32]={"炎魔","爆破大师","百花仙子","恶魔猎手","冥王","暴风雪法师","金牌厨师","雪山领主","太阳神","海怪船长","众神之王","暗s者","小丑","审判天使","生命之源","牛魔王","谜语人","吟游诗人","狂战士","召唤祭司","灵魂使者","枪械大师","时间绅士","幽灵","零号机","无双战神","克隆博士","阴阳师","皇家警卫","齐天大圣","蛇发女妖","守护天使"};srand(time(0));string a=pt[rand()%8];string b=xy[rand()%9];string c=jy[rand()%14];int d=rand()%3;printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 普通 │\n") ; printf("\t\t\t\t\t│ %s │\n",a.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *48");system("pause");system("cls");a=pt[rand()%8];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 普通 │\n") ; printf("\t\t\t\t\t│ %s │\n",a.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *48");system("pause");system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 稀有 │\n") ; printf("\t\t\t\t\t│ %s │\n",b.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *26");system("pause"); system("cls"); b=xy[rand()%9];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 稀有 │\n") ; printf("\t\t\t\t\t│ %s │\n",b.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *26");system("pause");system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 精英 │\n") ; printf("\t\t\t\t\t│ %s │\n",c.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *8");system("pause");system("cls");c=jy[rand()%14];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 精英 │\n") ; printf("\t\t\t\t\t│ %s │\n",c.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *8");system("pause");system("cls");if(d==0){string e=cs[rand()%32];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ ? │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *1");int x=time(0);while(time(0)-x<5);system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 传说 │\n") ; printf("\t\t\t\t\t│ %s │\n",e.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *1");system("pause");system("cls");}
}
传说宝箱:
int csbx(){srand(time(0));string cs[32]={"炎魔","爆破大师","百花仙子","恶魔猎手","冥王","暴风雪法师","金牌厨师","雪山领主","太阳神","海怪船长","众神之王","暗s者","小丑","审判天使","生命之源","牛魔王","谜语人","吟游诗人","狂战士","召唤祭司","灵魂使者","枪械大师","时间绅士","幽灵","零号机","无双战神","克隆博士","阴阳师","皇家警卫","齐天大圣","蛇发女妖","守护天使"};string e=cs[rand()%32];printf("\t\t\t\t\t传说宝箱"); printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ ? │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *1");int x=time(0);while(time(0)-x<5);system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 传说 │\n") ; printf("\t\t\t\t\t│ %s │\n",e.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *1");system("pause");
}
传说宝箱100连开:
int csbxlk(){srand(time(0));string cs[32]={"炎魔","爆破大师","百花仙子","恶魔猎手","冥王","暴风雪法师","金牌厨师","雪山领主","太阳神","海怪船长","众神之王","暗s者","小丑","审判天使","生命之源","牛魔王","谜语人","吟游诗人","狂战士","召唤祭司","灵魂使者","枪械大师","时间绅士","幽灵","零号机","无双战神","克隆博士","阴阳师","皇家警卫","齐天大圣","蛇发女妖","守护天使"};int csnum[32]={0};for(int i=0;i<100;i++){int rnd=rand()%32;string e=cs[rnd];csnum[rnd]++;printf("\t\t\t\t\t传说宝箱"); printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 传说 │\n") ; printf("\t\t\t\t\t│ %s │\n",e.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *1\n\n");
// int x=time(0);
// while(time(0)-x<1);}for(int i=0;i<32;i++){cout<<cs[i]<<": "<<csnum[i]<<"个\n";}
}
主函数:
int main(){system(title 土豆英雄抽传说卡) ;yg();hj();bj();csbx();csbxlk();return 0;
}
完整程序:
#include<bits/stdc++.h>
using namespace std;
void yg(){string pt[8]={"弹弓小子","独眼阿呆","毒镖猎手","法师学徒","炸弹人","飞刀侠","白银矿工","火枪手"};string xy[9]={"黑市商人","迷你忍者","木乃伊","快抢牛仔","酒仙","狂野射手","圣骑士","陷阱猎手","氪金大佬"};string jy[14]={"魔术师","共鸣奥术师","炼金师","无面怪杰","冒险家","三清道人","镭射战士","战斗鼓手","血镖忍者","御风者","小偷","热能恐龙","死神a","巫毒术士"}; string cs[32]={"炎魔","爆破大师","百花仙子","恶魔猎手","冥王","暴风雪法师","金牌厨师","雪山领主","太阳神","海怪船长","众神之王","暗s者","小丑","审判天使","生命之源","牛魔王","谜语人","吟游诗人","狂战士","召唤祭司","灵魂使者","枪械大师","时间绅士","幽灵","零号机","无双战神","克隆博士","阴阳师","皇家警卫","齐天大圣","蛇发女妖","守护天使"};srand(time(0));string a=pt[rand()%8];string b=xy[rand()%9];string c=jy[rand()%14];//Pneumonoultramicroscopicsilicovolcanoconiosis int d=rand()%2;printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 普通 │\n") ; printf("\t\t\t\t\t│ %s │\n",a.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *48");system("pause");system("cls");a=pt[rand()%8];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 普通 │\n") ; printf("\t\t\t\t\t│ %s │\n",a.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *48");system("pause");system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 稀有 │\n") ; printf("\t\t\t\t\t│ %s │\n",b.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *26");system("pause"); system("cls"); b=xy[rand()%9];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 稀有 │\n") ; printf("\t\t\t\t\t│ %s │\n",b.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *26");system("pause");system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 精英 │\n") ; printf("\t\t\t\t\t│ %s │\n",c.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *4");system("pause");system("cls");c=jy[rand()%14];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 精英 │\n") ; printf("\t\t\t\t\t│ %s │\n",c.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *4");system("pause");system("cls");if(d==0){string e=cs[rand()%32];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ ? │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *1");int x=time(0);while(time(0)-x<5);system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 传说 │\n") ; printf("\t\t\t\t\t│ %s │\n",e.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *1");system("pause");system("cls");}
}
void hj(){string pt[8]={"弹弓小子","独眼阿呆","毒镖猎手","法师学徒","炸弹人","飞刀侠","白银矿工","火枪手"};string xy[9]={"黑市商人","迷你忍者","木乃伊","快抢牛仔","酒仙","狂野射手","圣骑士","陷阱猎手","氪金大佬"};string jy[14]={"魔术师","共鸣奥术师","炼金师","无面怪杰","冒险家","三清道人","镭射战士","战斗鼓手","血镖忍者","御风者","小偷","热能恐龙","死神a","巫毒术士"}; string cs[32]={"炎魔","爆破大师","百花仙子","恶魔猎手","冥王","暴风雪法师","金牌厨师","雪山领主","太阳神","海怪船长","众神之王","暗s者","小丑","审判天使","生命之源","牛魔王","谜语人","吟游诗人","狂战士","召唤祭司","灵魂使者","枪械大师","时间绅士","幽灵","零号机","无双战神","克隆博士","阴阳师","皇家警卫","齐天大圣","蛇发女妖","守护天使"};srand(time(0));string a=pt[rand()%8];string b=xy[rand()%9];string c=jy[rand()%14];int d=rand()%10;printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 普通 │\n") ; printf("\t\t\t\t\t│ %s │\n",a.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *27");system("pause");system("cls");a=pt[rand()%8];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 普通 │\n") ; printf("\t\t\t\t\t│ %s │\n",a.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *27");system("pause");system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 稀有 │\n") ; printf("\t\t\t\t\t│ %s │\n",b.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *11");system("pause"); system("cls"); b=xy[rand()%9];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 稀有 │\n") ; printf("\t\t\t\t\t│ %s │\n",b.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *11");system("pause");system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 精英 │\n") ; printf("\t\t\t\t\t│ %s │\n",c.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *2");system("pause");system("cls");if(d==0){string e=cs[rand()%32];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ ? │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *1");int x=time(0);while(time(0)-x<5);system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 传说 │\n") ; printf("\t\t\t\t\t│ %s │\n",e.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *1");system("pause");system("cls");}
}
void bj(){string pt[8]={"弹弓小子","独眼阿呆","毒镖猎手","法师学徒","炸弹人","飞刀侠","白银矿工","火枪手"};string xy[9]={"黑市商人","迷你忍者","木乃伊","快抢牛仔","酒仙","狂野射手","圣骑士","陷阱猎手","氪金大佬"};string jy[14]={"魔术师","共鸣奥术师","炼金师","无面怪杰","冒险家","三清道人","镭射战士","战斗鼓手","血镖忍者","御风者","小偷","热能恐龙","死神a","巫毒术士"}; string cs[32]={"炎魔","爆破大师","百花仙子","恶魔猎手","冥王","暴风雪法师","金牌厨师","雪山领主","太阳神","海怪船长","众神之王","暗s者","小丑","审判天使","生命之源","牛魔王","谜语人","吟游诗人","狂战士","召唤祭司","灵魂使者","枪械大师","时间绅士","幽灵","零号机","无双战神","克隆博士","阴阳师","皇家警卫","齐天大圣","蛇发女妖","守护天使"};srand(time(0));string a=pt[rand()%8];string b=xy[rand()%9];string c=jy[rand()%14];int d=rand()%3;printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 普通 │\n") ; printf("\t\t\t\t\t│ %s │\n",a.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *48");system("pause");system("cls");a=pt[rand()%8];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 普通 │\n") ; printf("\t\t\t\t\t│ %s │\n",a.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *48");system("pause");system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 稀有 │\n") ; printf("\t\t\t\t\t│ %s │\n",b.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *26");system("pause"); system("cls"); b=xy[rand()%9];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 稀有 │\n") ; printf("\t\t\t\t\t│ %s │\n",b.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *26");system("pause");system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 精英 │\n") ; printf("\t\t\t\t\t│ %s │\n",c.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *8");system("pause");system("cls");c=jy[rand()%14];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 精英 │\n") ; printf("\t\t\t\t\t│ %s │\n",c.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *8");system("pause");system("cls");if(d==0){string e=cs[rand()%32];printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ ? │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *1");int x=time(0);while(time(0)-x<5);system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 传说 │\n") ; printf("\t\t\t\t\t│ %s │\n",e.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *1");system("pause");system("cls");}
}
int csbx(){srand(time(0));string cs[32]={"炎魔","爆破大师","百花仙子","恶魔猎手","冥王","暴风雪法师","金牌厨师","雪山领主","太阳神","海怪船长","众神之王","暗s者","小丑","审判天使","生命之源","牛魔王","谜语人","吟游诗人","狂战士","召唤祭司","灵魂使者","枪械大师","时间绅士","幽灵","零号机","无双战神","克隆博士","阴阳师","皇家警卫","齐天大圣","蛇发女妖","守护天使"};string e=cs[rand()%32];printf("\t\t\t\t\t传说宝箱"); printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ ? │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *1");int x=time(0);while(time(0)-x<5);system("cls");printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 传说 │\n") ; printf("\t\t\t\t\t│ %s │\n",e.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *1");system("pause");
}
int csbxlk(){srand(time(0));string cs[32]={"炎魔","爆破大师","百花仙子","恶魔猎手","冥王","暴风雪法师","金牌厨师","雪山领主","太阳神","海怪船长","众神之王","暗s者","小丑","审判天使","生命之源","牛魔王","谜语人","吟游诗人","狂战士","召唤祭司","灵魂使者","枪械大师","时间绅士","幽灵","零号机","无双战神","克隆博士","阴阳师","皇家警卫","齐天大圣","蛇发女妖","守护天使"};int csnum[32]={0};for(int i=0;i<100;i++){int rnd=rand()%32;string e=cs[rnd];csnum[rnd]++;printf("\t\t\t\t\t传说宝箱"); printf("\n\n\n\n\n\t\t\t\t\t┌───────────────────┐\n"); printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ 传说 │\n") ; printf("\t\t\t\t\t│ %s │\n",e.c_str()) ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t│ │\n") ; printf("\t\t\t\t\t└───────────────────┘\n");printf("\t\t\t\t\t\t *1\n\n");
// int x=time(0);
// while(time(0)-x<1);}for(int i=0;i<32;i++){cout<<cs[i]<<": "<<csnum[i]<<"个\n";}
}
int main(){system(title 土豆英雄抽传说卡) ;yg();hj();bj();csbx();csbxlk();return 0;
}
谢谢大家的观看与支持!
土豆英雄抽传说卡程序(非土豆英雄玩家不要看)相关推荐
- tkinter label_tkinter版自制王者荣耀抽卡程序
之前已经写了一个简单的控制台版本爬虫+抽卡程序,可以自己过瘾地抽王者荣耀皮肤. 花果山美男子:python自制王者荣耀抽卡程序zhuanlan.zhihu.com 今天我们就在它的基础上,做一个tk ...
- 非接触CPU卡与非接触IC卡的区别是什么?
我们的一些制卡客户在非接触式CPU卡和非接触式IC卡的认识方面还有些不足,经常会问非接触CPU卡是不是非接触IC卡?其实他们都是智能卡,但是却有本质上的差别,下面就让我为大家普及一下这方面的制卡常识. ...
- 英雄联盟怎么解除小窗口_英雄联盟S11BUG怎么卡_英雄联盟S11BUG卡法教学
关键字: 英雄联盟S11BUG怎么卡 英雄联盟S11BUG卡法教学 英雄联盟S11BUG能够直接瞬间秒野怪和打龙,男枪和皇子等英雄为代表,玩家们利用打野刀bug在野区横行霸道,那么英雄联盟S1 ...
- 【编程实践】每日JK打卡程序操作说明
0 声明(本着学习的态度进行了以下开发) "关于自动健康打卡运行程序,放在下面了,里面涉及到技术内容很少,其中就是包含一个自动化程序的调用和HTML中element的定位.声明:本程序和经验 ...
- win10玩英雄联盟总卡屏的修复方法【系统天地】
英雄联盟是当下比较热门的一款网络游戏,很多喜欢玩英雄联盟的童鞋抱怨说win10专业版下载安装玩游戏动不动就卡屏,已经影响到游戏体验感,这是怎么回事呢?此问题大家都比较少见,现在小编详解一下win10英 ...
- 如何复制java卡,使用java做一个简单的集卡程序
使用java做一个简单的集卡程序 本次设想的是要集齐4张卡,每张卡的概率都是25%,如果每个用户集齐需要多少次才能集合完毕 public class Test { public static void ...
- 微信封杀lol手游活动小程序?《英雄联盟手游》回应了
近日,<英雄联盟手游>官方上线"英雄重逢,峡谷新程"分享免费获得皮肤.英雄的活动.但是有网友反映,<英雄联盟手游>活动小程序因为分享太多被投诉,遭到微信官方 ...
- 云计算机lol,云电脑玩英雄联盟卡不卡?
云电脑玩英雄联盟卡不卡?从个人的体验来看,用极云普惠云电脑玩英雄联盟是不会卡的,玩起来非常的流畅.重点是家里放了很久的电脑,只能拿来办办公或者说看看电影的电脑,现在也能用来打游戏,打各种大型游戏都没有 ...
- [WinForm]Windows程序(非网页) #2 -- 跨平台的 ADO.NET程序(简单入门)
这是我的文章备份,有空请到我的网站走走, http://www.dotblogs.com.tw/mis2000lab/ 才能掌握我提供的第一手信息,谢谢您. http://www.dotblogs.c ...
- 微信小程序 非webview分享给好友及生成分享海报
微信小程序 非webview分享给好友及分享海报 UI展示 点击分享显示分享sheet: 点击生成海报,展示海报预览图片: 组件目录结构: 代码 works文件 woks.json中引入: " ...
最新文章
- 自定义导航栏,实现缓存,更新缓存,提高效率
- linux下的ps aux | grep -c php-fpm 与netstat -napo |grep php-fpm | wc -l 命令
- 法向量影响光源照射物体后,物体产生的视觉感光效果
- 【Python学习系列二十三】Scikit_Learn库降维方法(矩阵分解)-PCAFA
- 观察者模式在SAP CRM One Order回调函数中的应用
- P5431-[模板]乘法逆元2【递推】
- vue 项目白屏解决方案
- javascript精雕细琢(三):作用域与作用域链
- 更新fielddata为true_关于ElasticSearch的聚类时出现fielddata=true问题
- 01 Nginx的高并发处理
- 【Webcam设计】客户机与程序之间的通信cv::imencode/imdecode与 std::ifstream file与imread/imwrite方式
- Android 四大组件面试
- keras实现手写字体识别
- 当索尼停产单反:好产品是怎么被时代「消融」的?
- 地震勘探算法matlab,SeismicLab 地震勘探,matlab程序包, 地球物理, 学。作图工具等。 249万源代码下载- www.pudn.com...
- 悟道-看山是山,看水是水
- python怎么创建窗口_python如何设计窗口
- 计算机软件方法专利撰写,干货 | 计算机软件专利撰写模板
- 这是一个只有一句话的木MA
- 【知识分享】带你认识注册表
热门文章
- c语言程序设计实践与案例周讯东,第1章 C语言程序设计导引免费阅读_C程序设计与项目实践免费全文_百度阅读...
- 数字信号处理实验matlab版答案刘舒帆,数字信号处理实验指导书(MATLAB版) 随书代码...
- cc2530设计性实验代码六
- rost反剽窃检测系统_个人如何进行毕业论文查重检测?
- 基于qt的贪吃蛇游戏 c语言,基于QT的贪吃蛇游戏设计
- GsonFormat插件使用
- 互联网平台黑产解密(上)
- 2021软考网络工程师2004-2020年真题含答案解析(最新)
- Python基础语法测验习题(有答案版)
- 【SQL基础-1】SQL基本语句—增删改查