用C++程序奖励儿子东西

11 篇文章 0 订阅
6 篇文章 0 订阅

大家是不是经常因为孩子考试考得好 孩子想要奖品 你不知道给他啥而十分烦恼 为此 我编了一个程序来做

(作者声明:严禁转载)

目前最大的缺点是还未作出汉化版

直接上代码~~~

#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_」。
————————————————————————————————
————————————————

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值