C++生日快乐代码大全可复制(c语言生日快乐程序)

http://www.itjxue.com  2023-02-16 16:19  来源:未知  点击次数: 

求赐教,用C++制作一个制作一个祝朋友生日快乐的程序!

#include iostream

#include stdlib.h

#include conio.h

#include stdio.h

#include stdlib.h

#include time.h

#include windows.h

using namespace std;

void color(int a)//颜色函数

{

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),a);

}

int main(){

char a;

color(12);

cout "Do you want to see your BIRTHDAY CARD( Input y or n )?" endl;

color(15);

cin a;

color(12);

if ( a=='y' ){

cout "Ok, you will see your birthday card soon!" endl;

} else {

cout "That's OK, but happy birthday to you!" endl;

return 0;

}

Sleep(1000);

color(268);

cout "HAPPY ";

color(270);

cout "BRITHDAY ";

color(9);

cout "TO ";

color(10);

cout "YOU!" endl;

color(0);

Sleep(500);

cout " ";

color(236);

cout "********";

color(0);

cout " ";

color(236);

cout "********" endl;

Sleep(500);

color(0);

cout " ";

color(236);

cout "************";

color(0);

cout " ";

color(236);

cout "************" endl;

Sleep(500);

cout "****************************" endl;

Sleep(500);

cout "****************************" endl;

Sleep(500);

cout "****************************" endl;

Sleep(500);

color(0);

cout " ";

color(236);

cout "************************" endl;

Sleep(500);

color(0);

cout " ";

color(236);

cout "********************" endl;

Sleep(500);

color(0);

cout " ";

color(236);

cout "****************" endl;

Sleep(500);

color(0);

cout " ";

color(236);

cout "************" endl;

Sleep(500);

color(0);

cout " ";

color(236);

cout "********" endl;

Sleep(500);

color(0);

cout " ";

color(236);

cout "****" endl;

Sleep(500);

char c[55] = { 'T' ,'h' ,'a' ,'n' ,'k', ' ' ,'y' ,'o' ,'u', ' ' ,'f' ,'o' ,'r', ' ' ,'l' ,'o' ,'o' ,'k' ,'i' ,'n' ,'g', ' ' ,'a' ,'f' ,'t' ,'e' ,'r', 's', ' ' ,'m' ,'e', ' ' ,'f' ,'o' ,'r', ' ' ,'e' ,'l' ,'e' ,'v' ,'e' ,'n', ' ' ,'y' ,'e' ,'a' ,'r' ,'s', ',', ' ' ,'m' ,'o' ,'m' ,'!', '0' };

for ( int i=0; i=53; i++ ){

color( ( i+1 ) % 15 + 1 );

cout c[i];

}

cout endl;

Sleep(10000);

char d[12] = { 'I', ' ', 'l', 'o', 'v', 'e', ' ', 'y', 'o', 'u', '!', '0' };

int count = 0;

for ( int j=1; j=1000; j++ ){

count++;

for ( int i=0; i=10; i++ ){

color(i+1);

cout d[i];

}

cout " ";

}

cout endl;

cout "What present do you want(Input the number of the present)?" endl;

char e;

cout "A clothes(A); ???(B); Lipstick(C)" endl;

cin e;

srand((unsigned)time(NULL));

for ( int i=1; i=20; i++ ){

system( "cls" );

int s = 1;

int tmp = rand()%4;

switch( tmp ){

case 0:{

tmp++;

break;

}

case 1:{

color(rand()%15+1);

s++;

cout " # " endl;

color(rand()%15+1);

s++;

cout " # # " endl;

color(rand()%15+1);

s++;

cout " # # " endl;

color(rand()%15+1);

s++;

cout " ####### " endl;

color(rand()%15+1);

s++;

cout " # # " endl;

color(rand()%15+1);

s++;

cout " # # " endl;

color(rand()%15+1);

s++;

cout " # # " endl;

break;

}

case 2:{

color(rand()%15+1);

s++;

cout " ######### " endl;

color(rand()%15+1);

s++;

cout " # # " endl;

color(rand()%15+1);

s++;

cout " # # " endl;

color(rand()%15+1);

s++;

cout " ######### " endl;

color(rand()%15+1);

s++;

cout " # # " endl;

color(rand()%15+1);

s++;

cout " # # " endl;

color(rand()%15+1);

s++;

cout " ######### " endl;

break;

}

case 3:{

color(rand()%15+1);

s++;

cout " ######### " endl;

color(rand()%15+1);

s++;

cout " # " endl;

color(rand()%15+1);

s++;

cout " # " endl;

color(rand()%15+1);

s++;

cout " # " endl;

color(rand()%15+1);

s++;

cout " # " endl;

color(rand()%15+1);

s++;

cout " # " endl;

color(rand()%15+1);

s++;

cout " ######## " endl;

break;

}

}

Sleep(i*50);

}

system ( "cls" );

switch( e ){

case 'A':{

color(rand()%15+1);

cout " # " endl;

color(rand()%15+1);

cout " # # " endl;

color(rand()%15+1);

cout " # # " endl;

color(rand()%15+1);

cout " ####### " endl;

color(rand()%15+1);

cout " # # " endl;

color(rand()%15+1);

cout " # # " endl;

color(rand()%15+1);

cout " # # " endl;

break;

}

case 'B':{

color(rand()%15+1);

cout " ######### " endl;

color(rand()%15+1);

cout " # # " endl;

color(rand()%15+1);

cout " # # " endl;

color(rand()%15+1);

cout " ######### " endl;

color(rand()%15+1);

cout " # # " endl;

color(rand()%15+1);

cout " # # " endl;

color(rand()%15+1);

cout " ######### " endl;

break;

}

case 'c':{

color(rand()%15+1);

cout " ######### " endl;

color(rand()%15+1);

cout " # " endl;

color(rand()%15+1);

cout " # " endl;

color(rand()%15+1);

cout " # " endl;

color(rand()%15+1);

cout " # " endl;

color(rand()%15+1);

cout " # " endl;

color(rand()%15+1);

cout " ######## " endl;

break;

}

}

color(rand()%15+1);

cout "You are very LUKY!" endl;

cout "Please turn your head!" endl;

cout "Tab return to continue...";

cout endl;

color(0);

system( "pause" );

color(rand()%1023+1);

cout "Are you happy?!" endl;

color(rand()%1023+1);

cout "I think you are!!!" endl;

color(rand()%1023+1);

cout "...-..---..-.-.--!";

Sleep ( 3000 );

cout endl;

color(15);

cout "######" endl;

cout " #" endl;

cout "######" endl;

cout " #" endl;

cout "######" endl;

Sleep( 2000 );

system( "cls" );

cout " @@@@ " endl;

cout "@ @" endl;

cout " @ " endl;

cout " @ " endl;

cout "@@@@@@" endl;

Sleep ( 2000 );

system( "cls" );

cout " !! " endl;

cout " !!! " endl;

cout " !! " endl;

cout " !! " endl;

cout "!!!!!!" endl;

Sleep ( 2000 );

system( "cls" );

color( rand()%1023+1 );

cout " ###### # # ###### # " endl;

cout " # # # # # # " endl;

cout " # # # # # # " endl;

cout " ###### # ###### # " endl;

cout " # # # # # " endl;

cout " # # # # " endl;

cout " ###### # ###### # " endl;

color(15);

return 0;

}

仅供参考!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

有一个圣诞快乐的程序据说是用C语言写的,我想把它改成生日快乐的,跪求原代码~谢谢各位

#include"stdio.h"

#include string.h

intmain(void){

chara[]="Iwishyouahappybirthday!baiIwishyouahappybirthday!",m[4],i;

printf("\n\n\n");

printf("%*.*s\n",58,21,"_*=__=*_");

printf("%*.*s\n",61,25,"Wishyourbirthday!");

printf("%*.*s\n",63,29,"Iwishyouahappybirthday!");

printf("%*.*s\n",65,33,a);

printf("%*.*s\n",66,35,a);

printf("%*.*s\n",66,35,a);

printf("%*.*s\n",65,33,a);

printf("%*.*s\n",64,31,a);

printf("%*.*s\n",63,29,a);

printf("%*.*s\n",61,25,a);

printf("%*.*s\n",59,21,a);

printf("%*.*s\n",57,17,a);

printf("%*.*s\n",55,13,a);

printf("%*.*s\n",53,9,a);

printf("%*.*s\n",51,5,a);

printf("%*.*s\n",50,3,a);

printf("%*.*s\n",49,1,a);

return0;

扩展资料

或者:

#include stdio.h

#include math.h

#include stdlib.h

#defineI20

#defineR340

intmain()

system("modeconcols=80lines=60");

system("title向你致以最诚挚的祝福!");

chardata[200][60]={{"祝你生日快乐!祝你生日快乐!"},{"\nHappybirthdaytoyou!\n"},{"Happybirthdaymydearfriend!\n"},

{"在你面前的台里本,总有一天是很独特!\n"},{"虽然你和我,没办法选,来到世界的某刻。\n"},{"天气寒冷,又或炎热,又或者什么血型和星座!\n"},

{"每年这刻,我对自己说,有生的日子要更快乐!\n"},{"天气寒冷,又或炎热,又或者什么血型和星座!\n"},{"每年这刻,我对自己说,有生的日子要更快乐!\n"},

{"爸爸妈妈辛苦了!谢谢你们为我付出太多!\n"},{"生日祝福,吹灭蜡烛,我要我自己不许哭。\n"},{"长大了一岁变得靠谱,继续走自己的旅程!\n"},

{"又到这一个时刻,幸福的花火,手机祝福收到很多很多。\n"},{"看到最后一条来自你,写着让我感动的话语。\n"},{"亲爱的朋友要经常联络,我们一起来唱这首歌!\n"},

{"祝你生日快乐额!我们一起快乐!\n"}

};

intsign=0;

inti,j,e;

inta;

longtime;

? for(i=1,a=I;iI/2;i++,a--)

? ? ? for(j=(int) ( I-sqrt(I*I-(a-i)*(a-i)) );j0;j--)

printf("");

? ? ? for(e=1;e=2*sqrt(I*I-(a-i)*(a-i));e++)

printf("\3");

for(j=(int)

? ? ? ? ? ( 2*( I-sqrt(I*I-(a-i)*(a-i)) ) );j0;j--)

printf("");

? ? ? for(e=1;e=2*sqrt(I*I-(a-i)*(a-i));e++)

printf("\3");

printf("\n");

? for(i=1;i80;i++)

if(i==25)

printf("======祝,生日快乐。======");

i+=30;

printf("\3");

printf("\n");

? ? ? for(i=1;i=R/2;i++)

if(i%2||i%3)

continue;

? ? ? for(j=(int) ( R-sqrt(R*R-i*i) );j0;j--)

printf("");

? ? ? for(e=1;e=2*( sqrt(R*R-i*i) - (R-2*I) );e++)

printf("\3");

printf("\n");

for(;;)

system("colora");

for(time=0;time99999999;time++); system("color b");

for(time=0;time99999999;time++); system("color c");

for(time=0;time99999999;time++); system("color d");

for(time=0;time99999999;time++); system("color e");

for(time=0;time99999999;time++); system("color f");

for(time=0;time99999999;time++);

system("color 0"); for(time=0;time99999999;time++);

system("color 1"); for(time=0;time99999999;time++);

system("color 2"); for(time=0;time99999999;time++);

system("color 3"); for(time=0;time99999999;time++);

system("color4");

for(time=0;time99999999;time++); system("color 5");

for(time=0;time99999999;time++); system("color 6");

for(time=0;time99999999;time++); system("color 7");

for(time=0;time99999999;time++); system("color 8");

for(time=0;time99999999;time++); system("color 9");

for(time=0;time99999999;time++); system("color ab");

for(time=0;time99999999;time++); system("color ac");

for(time=0;time99999999;time++); system("color ad");

for(time=0;time99999999;time++); system("color ae");

for(time=0;time99999999;time++); system("color af");

for(time=0;time99999999;time++);

printf("%s",data[sign]);

sign++;

return0;

生日快乐用代码怎么打

你想要什么样子的生日快乐,如果只是单纯的字(红色的大字)

!doctype html

html

head

meta name="renderer" content="webkit"

meta charset="utf-8"

title茶泡泡/title

/head

body

div style="font-size:50px; color:#F00"生日快乐!/div

/body

/html

跪求一个C语言程序输出“生日快乐”(TC)

#include "Conio.h"

#include "graphics.h"

#define closegr closegraph

char sheng32S[]={

/* 以下是 '生' 的 32点阵宋体 字模,128 byte */

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,

0x00,0x00,0x80,0x00,0x00,0xC0,0x80,0x00,

0x00,0x80,0x80,0x00,0x00,0x80,0x80,0x00,

0x01,0x00,0x80,0x00,0x01,0x00,0x80,0x20,

0x00,0x00,0x80,0x00,0x02,0x00,0x80,0x00,

0x00,0x00,0x80,0x00,0x04,0x00,0x80,0x00,

0x00,0x00,0x80,0x00,0x00,0x00,0x80,0x00,

0x00,0x00,0x80,0x00,0x00,0x00,0x80,0x00,

0x00,0x00,0x80,0xC0,0x00,0x00,0x80,0x00,

0x00,0x00,0x80,0x00,0x00,0x00,0x80,0x00,

0x00,0x00,0x80,0x00,0x00,0x00,0x80,0x00,

0x00,0x00,0x80,0x00,0x00,0x00,0x80,0x00,

0x00,0x00,0x80,0x00,0x00,0x00,0x80,0x00,

0x00,0x00,0x80,0x18,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

};

char ri32S[]={

/* 以下是 '日' 的 32点阵宋体 字模,128 byte */

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,

0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,

0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,

0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,

0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,

0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,

0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,

0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,

0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,

0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,

0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,

0x01,0x00,0x00,0x80,0x01,0x00,0x00,0x80,

0x01,0x00,0x00,0x80,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

};

char kuai32S[]={

/* 以下是 '快' 的 32点阵宋体 字模,128 byte */

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x03,0x00,0x60,0x00,

0x02,0x00,0x40,0x00,0x02,0x00,0x40,0x00,

0x00,0x00,0x40,0x00,0x00,0x00,0x40,0x00,

0x00,0x00,0x40,0x40,0x00,0x00,0x40,0x40,

0x00,0x40,0x40,0x40,0x00,0x20,0x40,0x40,

0x00,0x10,0x40,0x40,0x00,0x00,0x40,0x40,

0x10,0x00,0x40,0x40,0x30,0x00,0x40,0x40,

0x00,0x00,0x40,0x40,0x00,0x00,0x40,0x48,

0x00,0x00,0x40,0x00,0x00,0x00,0x40,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,

0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,

0x00,0x01,0x02,0x00,0x02,0x02,0x00,0x00,

0x03,0x00,0x01,0x00,0x03,0x00,0x00,0xC0,

0x03,0x00,0x00,0x60,0x03,0x00,0x00,0x30,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

};

char le32S[]={

/* 以下是 '乐' 的 32点阵宋体 字模,128 byte */

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,

0x00,0x00,0x0F,0x00,0x01,0x00,0x00,0x00,

0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,

0x01,0x00,0x00,0x00,0x01,0x00,0x40,0x00,

0x01,0x00,0x40,0x00,0x01,0x00,0x40,0x00,

0x03,0x00,0x40,0x00,0x02,0x00,0x40,0x00,

0x02,0x00,0x40,0x10,0x02,0x00,0x40,0x00,

0x00,0x00,0x40,0x00,0x00,0x00,0x40,0x00,

0x00,0x00,0x40,0x00,0x00,0x30,0x40,0x00,

0x00,0x20,0x41,0x00,0x00,0x40,0x40,0x80,

0x00,0x80,0x40,0x40,0x01,0x00,0x40,0x60,

0x02,0x00,0x40,0x30,0x04,0x00,0x40,0x30,

0x00,0x00,0x40,0x00,0x00,0x00,0x40,0x00,

0x00,0x03,0xC0,0x00,0x00,0x01,0x80,0x00,

0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

};

void drawmat(char *mat,int matsize,int x,int y,int color)

/*依次:字模指针、点阵大小、起始坐标(x,y)、颜色*/

{int i,j,k,n; br/n=(matsize-1)/8+1; br/for(j=0;jmatsize;j++) br/for(i=0;in;i++) br/for(k=0;k8;k++) br/if(mat[j*n+i](0x80k)) /*测试为1的位则显示*/ br/putpixel(x+i*8+k,y+j,color); br/}

void initgr(void)

{

int gd = DETECT, gm = 0;

registerbgidriver(EGAVGA_driver);

initgraph(gd, gm, "");

}

int main(void)

{

initgr(); /* BGI初始化 */

drawmat(sheng32S,32,50,50,11);

drawmat(ri32S,32,100,100,11);

drawmat(kuai32S,32,150,150,11);

drawmat(le32S,32,200,200,11);

getch();

closegr();

return 0;

}

求送给朋友的生日快乐的程序 或者是源代码都可以 最好是源代码 谢谢

用vb做吧,可以直接发过去,弹出提示框的,代码如下:

wscript.echo("生日快乐")

你直接用一个文本文档输入然后把txt格式改成vbs就行了

你也可以照着样子添加

微信满屏表情代码大全复制

微信满屏表情代码大全复制

飞吻:????、kisses and hugs、baci、cium(印尼版“么么哒”)、Besos(西班牙版“亲亲”)、XOXO、么么哒、亲亲

蛋糕:???????????????、happy birthday、生日快乐、birthday

星星雨:??????、miss u、想你了、我想你、Te echo de menos(西班牙版“想你”)

火苗:红红火火

爆竹:新年快乐

钱袋:恭喜发财,招财进宝

星星:吉星高照,福星高照

桔子:大吉大利,吉祥如意,万事如意,万事大吉

苹果:一路平安,平平安安

鱼:年年有余,年年有鱼

糊脸表情:我爱你(适合愚人节发)

南瓜:万圣节快乐

彩蛋:感恩节快乐

圣诞树:圣诞快乐

康乃馨:母亲节快乐

男人头像:父亲节快乐

玫瑰花:love you,情人箭快典,情人节快乐,七夕

钻戒:嫁给我吧

爆竹:元宵节快乐

马头:马年快乐,马到成功,马到功成

火车: train,回家,火车,春运

红心:点个赞

微信满屏表情小技巧

1、复制这个字符代码“????”,然后粘贴到你的微信群昵称,设置成功后,只要群里面有人@你,就会有满屏下的表情。这个字符是泰文中“吻”的意思哦。上面其他的一些字符也可以试一试,同样的设置方法。

2、节日期间会有一些特殊的满屏表情掉落,比如愚人节打“我爱你”会掉糊脸表情,非常适合表白,被拒绝了还不尴尬;七夕打“我爱你”会掉粉红的心型礼物,“嫁给我吧”会掉钻戒。再就是打桃花运会掉桃花,打恭喜发财掉钱袋,春运、回家会出现小火车。还有下雪了、圣诞快乐等等,到时候大家可以试一试。

有很多隐藏的彩蛋表情,大家可以在聊天的时候多试一试。

微信8.0安卓版本更新特点

1.启动页面更改。

2.内置表情变得更大更有立体感。

3.在自带的表情包中添加了特殊表情的全屏动画,例如“炸弹”将具有爆炸效果,而“庆祝”将会放烟花。

4.调整了自带表情包的发送效果,默认发送的表情包比以前更大,并且会在1秒后缩小到正常大小。

5.增加了类似于QQ的“我的状态”,用户可以选择心情状态,例如郁闷,发呆,数羊等。

(责任编辑:IT教学网)

更多

推荐站内动态文章