用c语言编写名字爱心,C语语言编程ILOVEYOU加对方的名字谁能帮我编个程序最好再有点

1 , C语语言编程ILOVEYOU加对方的名字谁能帮我编个程序最好再有点#include <iostream>using namespace std;int main() cout<<" I"<<endl; cout<<" LO VE"<<endl; cout<<" YOU,MY"<<endl; cout<<"DEAR NAME"<<endl; return 0;}【用c语言编写名字爱心,C语语言编程ILOVEYOU加对方的名字谁能帮我编个程序最好再有点】
2 , 用c语言编写桃心 中间有字的这个建议用printf();慢慢试着编写出来吧!祝你幸福哈!用多维数组输出吧但是要自己耐心的排列一下 。。老土了 , 这个不好就是四个字?#include<stdio.h>int main(void)printf("\n\n\n桃杏梅芳\n\n\n");getchar();return;}有问题 +q 616006764
3,怎样用c语言编写心形int a=DETECT,b;float r,R=9;float n=10*3.14/180,x,y;int i;initgraph(&a,&b,"");circle(200,300,R);for(i=0;i<36;i++)y=300+R*sin(i*n);r=sqrt((x0-x)^2+(y0-y)^2);/*x0,y0为R圆上的一定点*/circle(x0,y0,r);}closegraph();printf(" ");printf(" ");printf("*"); .. 你算算要几个空格和*符` 一行行计好比较简单`写算法的话太复杂了`---------------------------------------------------------楼主是指: 整个心型用线连起来的?`这种要用算法把点充分排布才可以,c语言`大概上百行代码才能完成..
4,怎样用C语言编写个爱心图象创建一个心形图案需要的最长字符串,充分利用printf函数输出字符串的丰富控制功能,按心形图案每行所需长度和位置 , 对所创建的字符串进行截断并在所需位置上输出,最后在屏幕上形成由字符组成的心形图案 。//#include "stdafx.h"//If the vc++6.0, with this line.#include "stdio.h"int main(void) char a[]="I love you I love you I love you I l"; printf("\n\n\n"); printf("%*.*s\n",58,21,"_*=_ _=*_"); printf("%*.*s\n",61,25,"I love yo u I love!"); printf("%*.*s\n",63,29,"I love you I l ove you I love"); printf("%*.*s\n",65,33,a);//在屏幕第65个字符处开始输出字符串a的前33个字符,其他各句意义相同 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); return 0;}双层循环就可以了不过最简单的楼上的兄弟已经说了倒心:#include<stdio.h>#include<math.h>void main()int a,b,c; for(a=1;a<=6;a++)printf(" ");for(c=1;c<=2*a-1;c++)printf("\3");else printf(" ");}printf("\n"); }}双心:#include<stdio.h>#include<math.h>void main()int a,b,c; for(a=1;a<=6;a++)for(b=1;b<=6-a;b++)printf(" ");for(c=1;c<=2*a-1;c++)if(a<5&&(c==1||c==2*a-1)||(a==5&&(c==2||c==5||c==8))||a==6&&(c==4||c==5||c==7||c==8))printf("\3");else printf(" ");}printf("\n");} for(a=1;a<=6;a++)for(b=1;b<=a;b++)printf(" ");for(c=1;c<=11-2*a;c++)if(a>1&&(c==1||c==11-2*a)||a==1&&(c==2||c==5||c==8))printf("\3");else printf(" ");} printf("\n"); }}正心:#include<stdio.h>#include<math.h>void main()int a,b,c; printf("\3\3 \3\3\n"); for(a=1;a<=6;a++)for(b=1;b<=a;b++)printf(" ");for(c=1;c<=11-2*a;c++)if(a>1&&(c==1||c==11-2*a)||a==1&&(c==2||c==5||c==8))printf("\3");else printf(" ");} printf("\n"); }}# include # include #include # define u 0.06 # define v 0.025 # define m 1.1 # define n 1.2 int main(void) { float x, y; float m, n; char a[6600]; 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 ) ) strcat(a,"*"); else strcat(a," "); } strcat(a,"\n"); } strcat(a,"\0"); printf("%s\n",a); getchar(); return 0; }

    推荐阅读