生日礼物C++代码

#include<bits/stdc++.h>
using namespace std;
string s;
int a,b;
int main(){
	cout<<"        生日之地"<<'\n';
	cout<<"     1.开始游戏"<<"     2.不想开始"<<'\n';
	cin>>a;
	if(a==1||a==2){
		if(a==2)cout<<"您不想开始也得给我开始,我会问您几个问题"<<'\n';
		else cout<<"好,游戏开始之后,我会问您几个问题"<<'\n';
		_sleep(1000);
		system("cls");
		cout<<"你叫什么名字?"<<'\n';
		cin>>s;
		cout<<"请问您的性别是什么?"<<'\n'<<"1.Man     2.Woman"<<'\n';
		cin>>b;
		system("cls");
		cout<<"亲爱的"<<s;
		if(b==1)cout<<"先生,你好"<<'\n';
		if(b==2)cout<<"女士,你好"<<'\n';
		cout<<"请问您的出生日期是什么时候?(填国历哦)"<<'\n';
		cout<<"几几年:";
		int c;
		cin>>c;
		cout<<"几月份:";
		int d;
		cin>>d;
		cout<<"几日:";
		int e;
		cin>>e;
		system("cls");
		cout<<"噢,你是"<<c<<"年"<<d<<"月"<<e<<"日的啊,看来你是";
	string xz[12][2]={{ "摩羯座","水瓶座" },{ "水瓶座","双鱼座" },{ "双鱼座","白羊座" },{ "白羊座","金牛座" },{ "金牛座","双子座" },{ "双子座","巨蟹座" },{ "巨蟹座","狮子座" },{ "狮子座","处女座" },{ "处女座","天秤座" },{ "天秤座","天蝎座" },{ "天蝎座","射手座" },{ "射手座","摩羯座" },
	};
	int rq[]{ 20,19,21,20,21,22,23,23,23,24,23,22 };
	cout<<xz[d-1][e/rq[d]]<<'\n';
	_sleep(1000);
	system("cls");
	cout<<"下面给您一个惊喜";
	_sleep(1000);
	system("cls");
	cout<<"               33333"<<'\n';
	cout<<"              3     3"<<'\n';
	cout<<"             3       3"<<'\n';
	cout<<"                   3"<<'\n';
	cout<<"                 3"<<'\n';
	cout<<"                   3"<<'\n';
	cout<<"             3       3"<<'\n';
	cout<<"              3     3"<<'\n';
	cout<<"               33333"<<'\n';
	_sleep(1000);
	system("cls");
	cout<<"               22222"<<'\n';
	cout<<"              2     2"<<'\n';
	cout<<"             2       2"<<'\n';
	cout<<"                    2"<<'\n';
	cout<<"                  2"<<'\n';
	cout<<"                2"<<'\n';
	cout<<"              2"<<'\n';
	cout<<"             22222222"<<'\n';
	_sleep(1000);
	system("cls");
	cout<<"               111"<<'\n';
	cout<<"              1  1"<<'\n';
	cout<<"             1   1"<<'\n';
	cout<<"                 1"<<'\n';
	cout<<"                 1"<<'\n';
	cout<<"                 1"<<'\n';
	cout<<"                 1"<<'\n';
	cout<<"             11111111"<<'\n';
	_sleep(1000);
	system("cls");
	cout<<" 你心灵深处芳草永绿,青春常驻,笑口常开。祝你生日快乐,健康幸福!"<<'\n';
	cout<<" 让我为你祝福,让我为你欢笑,因为在你生日的今天,我的内心也跟你一样的欢腾、喜悦。祝你快乐!"<<'\n';
	cout<<" 留不住的时光、年龄的递增赋予你的是成熟;而留得住的只有在这张温馨的卡片上,涂抹得不标准的诗行,带去我诚挚的祝福!"<<'\n';
	cout<<"5s";
	_sleep(1000);
	 printf("%c[2K", 27);
	cout<<"4s";
	_sleep(1000);
	 printf("%c[2K", 27);
	cout<<"3s";
	_sleep(1000);
	 printf("%c[2K", 27);
	cout<<"2s";
	_sleep(1000);
	 printf("%c[2K", 27);
	cout<<"1s";
	system("cls");
	cout<<"送给您我的小心心"; 
	_sleep(1000);
	system("cls");
	float x, y, dp;
	for (y = 1.5; y > -1.5; y -= 0.1)
	{
		for (x = -1.5; x < 1.5; x += 0.05)
		{
			dp = x * x + y * y - 1;
			putchar(dp * dp * dp - x * x * y * y * y <= 0.0 ? '*' : ' ');
		}
		system("color 0c");
		putchar('\n');
	}
	}
	cout<<"祝你生日快乐!!!"; 
	system("color 5c");
	_sleep(1000);
	system("cls");
	cout<<" ooooo"<<'\n';
	cout<<"oo   oo"<<'\n';
	cout<<" ooooo"<<'\n';
	cout<<"   o"<<'\n';
	cout<<"oooooooo"<<'\n';
	cout<<"   o"<<'\n';
	cout<<"  o o"<<'\n';
	cout<<" o   o"<<'\n';
	cout<<"o     o"<<'\n';
	_sleep(1000);
	system("cls");
	cout<<"  ooooo"<<'\n';
	cout<<" oo   oo"<<'\n';
	cout<<"  ooooo"<<'\n';
	cout<<"    o"<<'\n';
	cout<<" oooooooo"<<'\n';
	cout<<"    o"<<'\n';
	cout<<"   o o"<<'\n';
	cout<<"  o   o"<<'\n';
	cout<<" o     o"<<'\n';
	_sleep(1000);
	system("cls");
	cout<<"   ooooo"<<'\n';
	cout<<"  oo   oo"<<'\n';
	cout<<"   ooooo"<<'\n';
	cout<<"     o"<<'\n';
	cout<<"  oooooooo"<<'\n';
	cout<<"     o"<<'\n';
	cout<<"    o o"<<'\n';
	cout<<"   o   o"<<'\n';
	cout<<"  o     o"<<'\n';
    _sleep(1000);
	system("cls");
	cout<<"    ooooo"<<'\n';
	cout<<"   oo   oo"<<'\n';
	cout<<"    ooooo"<<'\n';
	cout<<"      o"<<'\n';
	cout<<"   oooooooo"<<'\n';
	cout<<"      o"<<'\n';
	cout<<"     o o"<<'\n';
	cout<<"    o   o"<<'\n';
	cout<<"   o     o"<<'\n';
    _sleep(1000);
	system("cls");
	cout<<"     ooooo"<<'\n';
	cout<<"    oo   oo"<<'\n';
	cout<<"     ooooo"<<'\n';
	cout<<"       o"<<'\n';
	cout<<"    oooooooo"<<'\n';
	cout<<"       o"<<'\n';
	cout<<"      o o"<<'\n';
	cout<<"     o   o"<<'\n';
	cout<<"    o     o"<<'\n';
    _sleep(1000);
	system("cls");
	cout<<"      ooooo"<<'\n';
	cout<<"     oo   oo"<<'\n';
	cout<<"      ooooo"<<'\n';
	cout<<"        o"<<'\n';
	cout<<"     oooooooo"<<'\n';
	cout<<"        o"<<'\n';
	cout<<"       o o"<<'\n';
	cout<<"      o   o"<<'\n';
	cout<<"     o     o"<<'\n';
    _sleep(1000);
	system("cls");
	cout<<"       ooooo"<<'\n';
	cout<<"      oo   oo"<<'\n';
	cout<<"       ooooo"<<'\n';
	cout<<"         o"<<'\n';
	cout<<"      oooooooo"<<'\n';
	cout<<"         o"<<'\n';
	cout<<"        o o"<<'\n';
	cout<<"       o   o"<<'\n';
	cout<<"      o     o"<<'\n';
	cout<<"火柴人的蜕变,看好了"<<'\n';
    _sleep(1000);
	system("cls");	
	cout<<"       ooooo"<<'\n';
	cout<<"      oo   oo"<<'\n';
	cout<<"       ooooo"<<'\n';
	cout<<"         o"<<'\n';
	cout<<"      oooooooo"<<'\n';
	cout<<"         o"<<'\n';
	cout<<"        o o"<<'\n';
	cout<<"        o o"<<'\n';
	cout<<"       o   o"<<'\n';
	_sleep(1000);
	system("cls");	
	cout<<"       ooooo"<<'\n';
	cout<<"      oo   oo"<<'\n';
	cout<<"       ooooo"<<'\n';
	cout<<"         o"<<'\n';
	cout<<"      oooooooo"<<'\n';
	cout<<"         o"<<'\n';
	cout<<"        o o"<<'\n';
	cout<<"        o o"<<'\n';
	cout<<"        o o"<<'\n';
	_sleep(1000);
	system("cls");	
	cout<<"       ooooo"<<'\n';
	cout<<"      oo   oo"<<'\n';
	cout<<"       ooooo"<<'\n';
	cout<<"         o"<<'\n';
	cout<<"      oooooooo"<<'\n';
	cout<<"         o"<<'\n';
	cout<<"         o"<<'\n';
	cout<<"         o"<<'\n';
	cout<<"         o"<<'\n';
	_sleep(1000);
	system("cls");	
	cout<<"       ooooo"<<'\n';
	cout<<"      oo   oo"<<'\n';
	cout<<"       ooooo"<<'\n';
	cout<<"         o"<<'\n';
	cout<<"      oooooooo"<<'\n';
	cout<<"         o"<<'\n';
	cout<<"         o"<<'\n';
	cout<<"         o"<<'\n';
	cout<<"         o"<<'\n';
	_sleep(1000);
	system("cls");	
	cout<<"       o o o"<<'\n';
	cout<<"      oo o oo"<<'\n';
	cout<<"    oo o o o oo"<<'\n';
	cout<<"      oo o oo"<<'\n';
	cout<<"       ooooo"<<'\n';
	cout<<"         o"<<'\n';
	cout<<"      oooooooo"<<'\n';
	cout<<"         o"<<'\n';
	cout<<"         o"<<'\n';
	cout<<"         o"<<'\n';
	cout<<"         o"<<'\n';
	cout<<"送你一朵玫瑰花,虽然不太像,但请收下(#^.^#)"; 
	_sleep(1000);
	system("cls");
	cout<<"拜拜┏(^0^)┛"; 
    return 0;
}
             

制作不易,一键三连吧┭┮﹏┭┮

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值