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

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

#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=Ii<I/2i++,a--)

      for(j=(int) ( I-sqrt(I*I-(a-i)*(a-i)) )j>0j--)

printf("");

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

printf("\3");

for(j=(int)

          ( 2*( I-sqrt(I*I-(a-i)*(a-i)) ) )j>0j--)

printf("");

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

printf("\3");

printf("\n");

  for(i=1i<80i++)

if(i==25)

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

i+=30;

printf("\3");

printf("\n");

      for(i=1i<=R/2i++)

if(i%2||i%3)

continue;

      for(j=(int) ( R-sqrt(R*R-i*i) )j>0j--)

printf("");

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

printf("\3");

printf("\n");

for(;;)

system("colora");

for(time=0time<99999999time++)system("color b")

for(time=0time<99999999time++)system("color c")

for(time=0time<99999999time++)system("color d")

for(time=0time<99999999time++)system("color e")

for(time=0time<99999999time++)system("color f")

for(time=0time<99999999time++)

system("color 0")for(time=0time<99999999time++)

system("color 1")for(time=0time<99999999time++)

system("color 2")for(time=0time<99999999time++)

system("color 3")for(time=0time<99999999time++)

system("color4");

for(time=0time<99999999time++)system("color 5")

for(time=0time<99999999time++)system("color 6")

for(time=0time<99999999time++)system("color 7")

for(time=0time<99999999time++)system("color 8")

for(time=0time<99999999time++)system("color 9")

for(time=0time<99999999time++)system("color ab")

for(time=0time<99999999time++)system("color ac")

for(time=0time<99999999time++)system("color ad")

for(time=0time<99999999time++)system("color ae")

for(time=0time<99999999time++)system("color af")

for(time=0time<99999999time++)

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

sign++;

return0;

以下是圣诞树代码cIDOCTYPE HTNL PUBLIC "-//N3C//DTD HTNL 4.81 Framaeset//EN " " http://woser . x3 . arg/1 chtwl 5查德cmeta char-set-"utf-8" >cstyle >htal,车身(宽度:i88身高:i068边距:;填充:&;巴德:8;)di[margin:8;填充:8;边框:e;]。资产净值[绝对的;top:8;左:8;宽度:1868;高度:27px背景色:白色;颜色:黑色;文本对齐:居中;行高:25pxa ( colar:黑色;text-dsecation:无;边框-底部:ipx虚线黑色;1a:hover[bordar-bottom:IPX solid RSD;一个。pravious[float:lsft;左边距:1Bpx1 . next(float:right;margin-right:i8px;)-grsen(颜色:绿色;)。红色(颜色:红色;)textarea(宽度:16K身高:10%;bordar:&;填充:a;边距:&;填充-底部:28px]。block-outer(float:left;宽度:22x身高:10 &%;填充:5pxborder-1aft: ipx纯黑;mangir.block-innsr(身高:683;一个。ons[border:8;jc/风格c/lhcadscbody margin idth-" e " margin height-" 8 " >ccan vas id-" c " height-" 356 " width-" 446 >cscript >var col 1 apsed-true;函数toggls(3[var fs-top . documant . gatelensntsbytagnams(" frase set ")[0]:var f-fs-get E1 snantsby标记名(" frane ":如果(折叠)[fs . rows-“258 p×x,*”:/在firefaxy operafs.noResize - falss中启用franmes的大小调整;f[8]-no resize-false;[[1].no resize-false;否则[fs.rous - "38px,":禁用firefaxfaperafs.noResize - trus中框架的大小调整;f[8]。-nof resize-true;L [1]。no resize-true;collapsed-l collapsed;cscript >r/子任务f i的开始帕纳斯;Q = M.rands2-[]U = 16TM.sinEl.sqrtfor(Qmk 8;xmimjsikc280)与(M[K]J-k?c . clcndods(8):c)(widthamheightek?子任务结束c/script ></bodys


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/8136774.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-13
下一篇 2023-04-13

发表评论

登录后才能评论

评论列表(0条)

保存