--代码如下:
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main()
{
float x, y, a;
for(y=1.5;y>-1.5;y-=0.1)
{
for(x=-1.5;x<1.5;x+=0.05)
{
a=x*x+y*y-1;
putchar(a*a*a-x*x*y*y*y<=0.0?'*':' ');
}
Sleep(10);
system("color 0c");
putchar('\n');
}
system("pause");
return 0;
}
结果显示:
很有意思的一串代码,大家赶紧试着玩玩。
//转载请注明出处:https://www.cnblogs.com/Songjunxiang/p/15620684.html