大家是不是经常因为孩子考试考得好 孩子想要奖品 你不知道给他啥而十分烦恼 为此 我编了一个程序来做
(作者声明:严禁转载)
目前最大的缺点是还未作出汉化版
直接上代码~~~
#include<bits/stdc++.h>
#include<windows.h>
#include<ctime>
using namespace std;
int slowout(string s){
for(int i=0;i<s.size();i++)
{
cout<<s[i];
Sleep(200);
}
return 0;
}
using namespace std;
int main(){
//由 https://blog.csdn.net/ian20120124_?spm=1010.2135.3001.5343") 制作 本作者严禁转载
slowout("Welcome_to_this_shop");
system("cls");
Sleep(2000);
slowout("Please_import_and_then_press_'enter'");
string sbsd;
cin>>sbsd;
Sleep(2500);
system("cls");
slowout("Wait_for_the_food_to_come_into_the_shop");
system("cls");
slowout("Please_import_and_then_press_'enter'");
string sbsdef;
cin>>sbsdef;
Sleep(2500);
slowout("your_lucky_number_is:");
cout<<time(0)/10000;
cout<<endl;
int t;
t=time(0)/10000;
slowout("Wait_for_the_things");
cout<<endl;
Sleep(3000);
system("cls");
if(t%100==14){
slowout("LUCKY_ONE!You_got_the_first_reward!!!");
cout<<endl;
slowout("One_computer!!!");
cout<<endl;
}
else if(t%50==3){
slowout("Wonderful!You_got_the_second_reward!!");
cout<<endl;
slowout("ten_bars_of_chocolate!!orTwenty_ice_cream!!");
cout<<endl;
}
else{
slowout("Just_soso.You_got_the_third_reward.");
cout<<endl;
slowout("Fifty_sweets_or_two_ice_cream");
cout<<endl;
}
slowout("Goodbye");
return 0;
}
效果如下
本程序效果(无剪辑)
以上就是本期所有内容了 谢谢
希望各位大佬们点个赞👍吧!!!求求啦~~~
关注+点赞超过100个立马更新哦!
版权声明:本文为CSDN博主「ian20120124_」的原创文章,如需转载,请通知CSDN博主「ian20120124_」。
————————————————————————————————
————————————————