//normal
#include <stdio.h>

int main() {
    for (float y = 1.5f; y > -1.5f; y -= 0.1f) {
        for (float x = -1.5f; x < 1.5f; x += 0.05f) {
            float a = x * x + y * y - 1;
            putchar(a * a * a - x * x * y * y * y <= 0.0f ? '*' : ' ');
        }
        putchar('\n');
    }
}
//来点花样
#include <stdio.h>

int main() {
    for (float y = 1.5f; y > -1.5f; y -= 0.1f) {
        for (float x = -1.5f; x < 1.5f; x += 0.05f) {
            float z = x * x + y * y - 1;
            float f = z * z * z - x * x * y * y * y;
            putchar(f <= 0.0f ? ".:-=+*#%@"[(int)(f * -8.0f)] : ' ');
        }
        putchar('\n');
    }
}

参考网站

相关文章:

  • 2021-11-28
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2022-03-08
  • 2022-12-23
猜你喜欢
  • 2021-11-28
  • 2021-07-25
  • 2022-01-28
  • 2021-06-28
  • 2022-12-23
  • 2022-01-20
相关资源
相似解决方案