使用前麻烦赏个赞哦!!
黑白版:
#include<iostream>
#include<windows.h>
using namespace std;
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 ? '*' : ' ');
}
}
system("pause");
return 0;
}
彩色版:
#include<iostream>
#include<windows.h>
using names