Blogger Information
Blog 1
fans 0
comment 0
visits 2464
Related recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
用C语言画一个爱心
吃花椒
Original
2466 people have browsed it
#include<stdio.h>
#include<math.h>
int main()
{
  float x,y,a;
  for(y=1.5f;y>-1.5f;y-=0.1f)        //线程处理
   {
   for(x=-1.5f;x<1.5f;x+=0.05f)
     {
       a=x*x+y*y-1;
       putchar(a*a*a-x*x*y*y*y<=0.0f?'*':' ');
      }
       putchar('\n');
   }
     return 0;
}

保存为love.c

然后用  gcc -o love love.c  编译

最后用命令: ./love 执行程序  就是下边这样子


love.png

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post