#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;
}
[ffg,#FFF467,#FFFFFF]↘ ↘[/ft][ffg,#00BFF3,#FFFFFF]圣诞节来了,[/搏碰磨ft][ffg,#EF6EA8,#FFFFFF]↘基斗 ↘[/ft][ffg,#D9DFEF,#FFFFFF]我送你一颗松树![/ft]
[ffg,#FDDFD7,#FFFFFF]↘ ↘[/ft][ftc=#37B400]友情是树皮,[/ft]
[ffg,#EE1D24,#FFFFFF]↘ ↘叶子是祝福,[/ft]
[ffg,#5573B7,#FFFFFF]↘ ↘[/ft]上面挂满爱吵拿的礼物[/ft]
[ffg,#00BFF3,#FFFFFF]↘ ↘[/ft][ffg,#EE1000,#FFFFFF]喜欢吧?[/ft]
[ftc=#FDDFD7]↘ ↘[/ft][ffg,#FFF100,#FFFFFF]对了,还有我的祝福[/ft]
[ffg,#855FA8,#FFFFFF]↘ ↘[/ft][ftc=#E4F2E2]我写个纸条给你[/ft]
[ffg,#37B400,#FFFFFF]↘ ↘[/ft][ffg,#EF6EA8,#FFFFFF]答应让你来我的空间做客![/ft]
[ffg,#F79700,#FFFFFF]↘ ↘[/ft][ftc=#6CCFF7]记得要带上爱心喔![/ft]
[ffg,#00BFF3,#FFFFFF]↘ ↘[/ft][ffg,#FCE0E2,#FFFFFF]佷耐伱[/ft]
[fts=2]更多『记得来失落天堂找我啊!』[/ft]
那我就尘明写个例子吧!如下:#include <stdio.h>
//定义一个描述日期态兄者的结构体
struct Date
{
int year//年
int month//月
int day//日
}
int main()
{
//声明一个结构体对象帆薯,表示上个圣诞节的日期
struct Date LastChristmas
//日期是2006年12月25日
LastChristmas.year = 2006
LastChristmas.month = 12
LastChristmas.day = 25
//输出
printf("Last Christmas is %d.%d %d", LastChristmas.month, LastChristmas.day, LastChristmas.year)
return 0
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)