v1.0.0
//工具->编译选项-> "-std=c++11"
#include<bits/stdc++.h>
#include<Windows.h>
#define p printf
using namespace std;
int rand()
{
mt19937 gen(time(0));
int a = gen();
return a;
}
int randd(int a,int b)
{
mt19937 gen(time(0));
uniform_int_distribution<> dis(a,b);
return dis(gen);
}
void t(string s)
{
for(int i=0;i<s.size();i++)
{
cout<<s[i];
Sleep(100);
}
cout<<endl;
}
void cs(int x)
{
int s=randd(1,5);
if(x>=95)
{
t("大吉,");
if(s==1)t("会在垃圾桶捡到被丢到的钻戒");
if(s==2)t("会被地上的钱包绊倒(我可不知道里面有多少钱)。");
if(s==3)t("玩刮刮乐会一发入魂(必中头奖)。");
if(s==4)t("考试会“考的全不会,蒙的全都对”(仅限选择题、判断题)");
if(s==5)t("被讹后索赔100万胜诉。");
}
else if(x>=85)
{
t("中吉,");
if(s==5)t("出意外时不会触发不死图腾、复活甲和“桃”,还能活下来。");
if(s==4)t("考试蒙的题只会错四分之一。");
if(s==3)t("玩刮刮乐会赚钱(起码是彩票价格的十倍)。");
if(s==2)t("在垃圾桶里捡到money,但不多(刚好能吃一顿)。");
if(s==1)t("被讹后警察蜀黍帮你辩护。");
}
else if(x>=75)
{
t("小吉,");
if(s==1)t("玩刮刮乐会刚好回本。");
if(s==3)t("考试蒙的题只会错一半。");
if(s==2)t("玩刮刮乐会站到一点点(虽然只赚一点点,但要分我一些!!!)。");
if(s==4)t("玩MC遇上天胡神种(记得分享给我)。");
if(s==5)t("违反交规蜀黍会放你一马(别干太重)。");
}
else if(x>=50)
{
t("中平,");
if(s==2)t("无事发生。");
if(s==5)t("出去玩时一下子把不死图腾、复活甲和“桃”都创碎了。");
if(s==3)t("玩刮刮乐会刚好回本(谁叫你昨天**别人,给你绘本算好的了)。");
if(s==4)t("玩MC时开极限模式存档开局掉进矿坑里仅剩半颗心。");
if(s==1)t("和别人吵架伤敌1000自损999。");
}
else if(x>=25)
{
t("凶,");
if(s==1)t("被朋友耍。");
if(s==5)t("被陌生人人扇巴掌还被怼得哑口无言。");
if(s==4)t("买彩票血亏(最好敲敲木鱼)。");
if(s==2)t("玩MC时开极限模式存档天胡开局结果被铁傀儡偷袭(可能是僵尸,但一定会趋势)。");
if(s==3)t("考试蒙的都能完美避开正确答案(真厉害)。");
}
else if(x>=5)
{
t("大凶,");
if(s==5)t("敲木鱼把木鱼敲碎了。");
if(s==4)t("去医院一个月没出来(猜猜发生什么了)。");
if(s==1)t("买彩票血亏(最好敲敲木鱼)。");
if(s==2)t("打和平精英遇到自己喜欢的主播结果被主播狙掉了。");
if(s==3)t("考试蒙的都能完美避开正确答案(真厉害)。");
}
else
{
t("无话可说(建议进监狱吃几年牢饭缓一缓)。");
}
cout<<endl<<"--------------------------------------------------"<<endl;
}
int main() {
t("——未来运势占卜仪(V1.0.0)——");
p("(显示占卜结果的时候如果卡机了请按一下键盘上的任意键)\n");
t("请输入姓名:");
string s;
cin>>s;
t("请输入要占卜的天数:");
int n;
cin>>n;
for(int i=0;i<=100;i++)
{
system("cls");
cout<<"正在占卜"<<s<<"未来的运势……("<<i<<"%/100%)";
Sleep(randd(0,999)%100);
}
system("cls");
for(int i=1;i<=n;i++)
{
int x=randd(0,999)%101;
cout<<s<<"第"<<i<<"天的幸运值是"<<x<<":";
cs(x);
Sleep(100);
}
return 0;
}
v1.0.1
//工具->编译选项-> "-std=c++11"
#include<bits/stdc++.h>
#include<Windows.h>
#define p printf
using namespace std;
int rand()
{
mt19937 gen(time(0));
int a = gen();
return a;
}
int randd(int a,int b)
{
mt19937 gen(time(0));
uniform_int_distribution<> dis(a,b);
return dis(gen);
}
void t(string s)
{
for(int i=0;i<s.size();i++)
{
cout<<s[i];
Sleep(100);
}
cout<<endl;
}
void cs(int x)
{
int s=randd(1,5);
if(x>=95)
{
t("大吉");
if(s==1)t("会在垃圾桶捡到被丢到的钻戒");
if(s==2)t("会被地上的钱包绊倒(我可不知道里面有多少钱)。");
if(s==3)t("玩刮刮乐会一发入魂(必中头奖)。");
if(s==4)t("考试会“考的全不会,蒙的全都对”(仅限选择题、判断题)");
if(s==5)t("被讹后索赔100万胜诉。");
}
else if(x>=85)
{
t("中吉");
if(s==5)t("出意外时不会触发不死图腾、复活甲和“桃”,还能活下来。");
if(s==4)t("考试蒙的题只会错四分之一。");
if(s==3)t("玩刮刮乐会赚钱(起码是彩票价格的十倍)。");
if(s==2)t("在垃圾桶里捡到money,但不多(刚好能吃一顿)。");
if(s==1)t("被讹后警察蜀黍帮你辩护。");
}
else if(x>=75)
{
t("小吉");
if(s==1)t("玩刮刮乐会刚好回本。");
if(s==3)t("考试蒙的题只会错一半。");
if(s==2)t("玩刮刮乐会赚到一点点(虽然只赚一点点,但要分我一些!!!)。");
if(s==4)t("玩MC遇上天胡神种(记得分享给我)。");
if(s==5)t("违反交规蜀黍会放你一马(别干太重)。");
}
else if(x>=50)
{
t("中平");
if(s==2)t("无事发生。");
if(s==5)t("出去玩时一下子把不死图腾、复活甲和“桃”都创碎了。");
if(s==3)t("玩刮刮乐会刚好回本(谁叫你昨天**别人,给你回本算好的了)。");
if(s==4)t("玩MC时开极限模式存档开局掉进矿坑里仅剩半颗心。");
if(s==1)t("和别人吵架伤敌1000自损999。");
}
else if(x>=25)
{
t("凶");
if(s==1)t("被朋友耍。");
if(s==5)t("被陌生人人扇巴掌还被怼得哑口无言。");
if(s==4)t("买彩票血亏(最好敲敲木鱼)。");
if(s==2)t("玩MC时开极限模式存档天胡开局结果被铁傀儡偷袭(可能是僵尸,但一定会趋势)。");
if(s==3)t("考试蒙的都能完美避开正确答案(真厉害)。");
}
else if(x>=5)
{
t("大凶");
if(s==5)t("敲木鱼把木鱼敲碎了。");
if(s==4)t("去医院一个月没出来(猜猜发生什么了)。");
if(s==1)t("买彩票买了一本,结果一块钱也没中,血亏(最好敲敲木鱼)。");
if(s==2)t("打和平精英遇到自己喜欢的主播,结果被主播狙掉了。");
if(s==3)t("考试蒙的都能完美避开正确答案(真厉害)。");
}
else
{
t("无话可说(建议反思一下最近几天是不是没敲木鱼)。");
}
cout<<endl<<"--------------------------------------------------"<<endl;
}
int main() {
t("——未来运势占卜仪(V1.0.1)——");
p("(显示占卜结果的时候如果卡机了请按一下键盘上的任意键)\n");
t("请输入姓名:");
string s;
cin>>s;
t("请输入要占卜的天数:");
int n;
cin>>n;
for(int i=0;i<=100;i++)
{
system("cls");
cout<<"正在占卜"<<s<<"未来的运势……("<<i<<"%/100%)";
Sleep(randd(0,999)%100);
}
system("cls");
for(int i=1;i<=n;i++)
{
int x=randd(0,999)%101;
cout<<s<<"第"<<i<<"天的幸运值是"<<x<<":";
cs(x);
Sleep(100);
}
return 0;
}