欢迎来到天天文库
浏览记录
ID:50365120
大小:78.47 KB
页数:6页
时间:2020-03-08
《心形图案代码.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、1#include#include#defineU0.06#defineV0.025#defineM1.1#defineN1.2intmain(void){floatx,y;floatm,n;for(y=2;y>=-2;y-=U){ for(x=-1.2;x<=1.2;x+=V){if((((x*x+y*y-1)*(x*x+y*y-1)*(x*x+y*y-1)-x*x*y*y*y)<=0))printf("*");elseprintf("");}printf("");}getcha
2、r();return0;}2#include#include#include#include#defineU0.06#defineV0.025#defineM1.1#defineN1.2voidgotoxy(intx,inty);intmain(void){system("modeconcols=100lines=60");floatx,y;floatm,n;for(y=2;y>=-2;y-=U){ for(x=-1.2;x<=1.2;x+=V)
3、{if((((x*x+y*y-1)*(x*x+y*y-1)*(x*x+y*y-1)-x*x*y*y*y)<=0))printf("*");elseprintf("");}printf("");}gotoxy(0,0);getchar();return0;}voidgotoxy(intx,inty){COORDPos;Pos.X=x;Pos.Y=y;SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),Pos);}3.#includeint
4、main(void){inta1,a2,a3,b,n,x,y,z,b1;intx1,x2,x3;printf("请先将窗口最大化!!!");printf("请输入一个3-10的数字,然后就将见证奇迹!!!");printf("");printf("madeby江陈苗");scanf("%d",&z);printf("");printf("
5、送给最亲爱的XXX:");if(z<6){printf("");for(x1=1;x1x1-3;x2--)printf("");for(x2=z;x2<2*z+3*x1-3;x2++)printf("8");for(x2=0;x2<4*(z-x1)-2;x2++)printf("");for(x2=z;x2<2*z+3*x1-3;x2++)printf("8");printf("");}}else{for(x1=2;x16、x1++){n=3*z;for(x2=z;x2>x1-3;x2--)printf("");for(x2=z;x2<2*z+3*x1-3;x2++)printf("8");for(x2=0;x2<4*(z-x1)-2;x2++)printf("");for(x2=z;x2<2*z+3*x1-3;x2++)printf("8");printf("");}}for(a1=0;a17、4*z-a1)-8;x++)printf("8");printf("");}else{printf("");for(b=0;b<=a1;b++)printf("");for(b=1;b<4*z-10;b++)printf("8");printf("Iloveyou");for(b=1;b<4*z-10;b++)printf("8");printf("");}}if(z<5){for(a1=z,b1=0;a1<3*z;a1++,b1+=2){printf("");for(b=z;b<=a1;b++)printf(8、"");for(b=0;b<=a1;b++)printf("");for(x=2;x<2*(4*z-a1)-8-b1;x++)printf("8");printf("");}printf("——来自爱你的江陈苗");}elseif(z<7){for(a1=z,b1=0;a1<3*z-5;a1++,b1+=2){pr
6、x1++){n=3*z;for(x2=z;x2>x1-3;x2--)printf("");for(x2=z;x2<2*z+3*x1-3;x2++)printf("8");for(x2=0;x2<4*(z-x1)-2;x2++)printf("");for(x2=z;x2<2*z+3*x1-3;x2++)printf("8");printf("");}}for(a1=0;a17、4*z-a1)-8;x++)printf("8");printf("");}else{printf("");for(b=0;b<=a1;b++)printf("");for(b=1;b<4*z-10;b++)printf("8");printf("Iloveyou");for(b=1;b<4*z-10;b++)printf("8");printf("");}}if(z<5){for(a1=z,b1=0;a1<3*z;a1++,b1+=2){printf("");for(b=z;b<=a1;b++)printf(8、"");for(b=0;b<=a1;b++)printf("");for(x=2;x<2*(4*z-a1)-8-b1;x++)printf("8");printf("");}printf("——来自爱你的江陈苗");}elseif(z<7){for(a1=z,b1=0;a1<3*z-5;a1++,b1+=2){pr
7、4*z-a1)-8;x++)printf("8");printf("");}else{printf("");for(b=0;b<=a1;b++)printf("");for(b=1;b<4*z-10;b++)printf("8");printf("Iloveyou");for(b=1;b<4*z-10;b++)printf("8");printf("");}}if(z<5){for(a1=z,b1=0;a1<3*z;a1++,b1+=2){printf("");for(b=z;b<=a1;b++)printf(
8、"");for(b=0;b<=a1;b++)printf("");for(x=2;x<2*(4*z-a1)-8-b1;x++)printf("8");printf("");}printf("——来自爱你的江陈苗");}elseif(z<7){for(a1=z,b1=0;a1<3*z-5;a1++,b1+=2){pr
此文档下载收益归作者所有