欢迎来到天天文库
浏览记录
ID:49171995
大小:26.00 KB
页数:4页
时间:2020-02-29
《c语言心形代码及图形.doc》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、#include#include#include#definer10#defineR172intmain(void){FILE*fp;intn;if((fp=fopen("LOVE.txt","w"))==NULL){printf("Fileopenerror!");exit(0);}inti,j,e;inta;for(i=1,a=r;i2、));j>0;j--){printf("");fprintf(fp,"%s","");}for(e=1;e<=2*sqrt((r*r-(a-i)*(a-i)));e++)精选范本,供参考!{printf("3");fprintf(fp,"%s","*");}for(j=(int)(2*(r-sqrt((r*r-(a-i)*(a-i)))));j>0;j--){printf("");fprintf(fp,"%s","");}for(e=1;e<=2*sqrt((r*r-(a-i)*(a-i)))3、;e++){printf("3");fprintf(fp,"%s","*");}printf("");fprintf(fp,"%s","");}for(i=1;i<40;i++){if(i==6){printf("(∩_∩)ILOVEMYMOTHER(∩_∩)");i+=30;}printf("3");fprintf(fp,"%s","*");}printf("");for(i=1;i<=R/2;i++){if(i%24、5、i%3)continue;for(j=(int)(R-sq6、rt((double)(R*R-i*i)));j>0;j--){printf("");fprintf(fp,"%s","");}for(e=1;e<=2*(sqrt((double)(R*R-i*i))-(R-2*r));e++){printf("3");fprintf(fp,"%s","*");}printf("");精选范本,供参考!}printf("请选着播放形式:自动播放:按1,控制播放:按0");printf("按完数字后请按enter键");scanf("%d",&7、n);if(n==0){while(1){system("colora");system("pause");system("colorb");system("pause");system("colorc");system("pause");system("colord");system("pause");system("colore");system("pause");system("colorf");system("pause");}}else{while(1){system("colora"8、);Sleep(100);system("colorb");Sleep(100);system("colorc");Sleep(100);system("colord");Sleep(100);system("colore");Sleep(100);system("colorf");Sleep(100);system("color0");Sleep(100);}}return0;}精选范本,供参考!【本文档内容可以自由复制内容或自由编辑修改内容期待你的好评和关注,我们将会做得更好】精选范本,供参9、考!
2、));j>0;j--){printf("");fprintf(fp,"%s","");}for(e=1;e<=2*sqrt((r*r-(a-i)*(a-i)));e++)精选范本,供参考!{printf("3");fprintf(fp,"%s","*");}for(j=(int)(2*(r-sqrt((r*r-(a-i)*(a-i)))));j>0;j--){printf("");fprintf(fp,"%s","");}for(e=1;e<=2*sqrt((r*r-(a-i)*(a-i)))
3、;e++){printf("3");fprintf(fp,"%s","*");}printf("");fprintf(fp,"%s","");}for(i=1;i<40;i++){if(i==6){printf("(∩_∩)ILOVEMYMOTHER(∩_∩)");i+=30;}printf("3");fprintf(fp,"%s","*");}printf("");for(i=1;i<=R/2;i++){if(i%2
4、
5、i%3)continue;for(j=(int)(R-sq
6、rt((double)(R*R-i*i)));j>0;j--){printf("");fprintf(fp,"%s","");}for(e=1;e<=2*(sqrt((double)(R*R-i*i))-(R-2*r));e++){printf("3");fprintf(fp,"%s","*");}printf("");精选范本,供参考!}printf("请选着播放形式:自动播放:按1,控制播放:按0");printf("按完数字后请按enter键");scanf("%d",&
7、n);if(n==0){while(1){system("colora");system("pause");system("colorb");system("pause");system("colorc");system("pause");system("colord");system("pause");system("colore");system("pause");system("colorf");system("pause");}}else{while(1){system("colora"
8、);Sleep(100);system("colorb");Sleep(100);system("colorc");Sleep(100);system("colord");Sleep(100);system("colore");Sleep(100);system("colorf");Sleep(100);system("color0");Sleep(100);}}return0;}精选范本,供参考!【本文档内容可以自由复制内容或自由编辑修改内容期待你的好评和关注,我们将会做得更好】精选范本,供参
9、考!
此文档下载收益归作者所有