#include <stdio.h>
#include<stdlib.h>
#include<Windows.h>
void H(float m, float n)
{
printf(m-n <= 0 ? “H” : " ");
}
void a(float m, float n)
{
printf(m - n <= 0 ? “a” : " ");
}
void p(float m, float n)
{
printf(m - n <= 0 ? “p” : " ");
}
void y(float m, float n)
{
printf(m - n <= 0 ? “y” : " ");
}
void M(float m, float n)
{
printf(m - n <= 0 ? “M” : " ");
}
void o(float m, float n)
{
printf(m - n <= 0 ? “o” : " ");
}
void t(float m, float n)
{
printf(m - n <= 0 ? “t” : " ");
}
void h(float m, float n)
{
printf(m - n <= 0 ? “h” : " ");
}
void e(float m, float n)
{
printf(m - n <= 0 ? “e” : " ");
}
void r(float m, float n)
{
printf(m - n <= 0 ? “r” : " ");
}
void s(float m, float n)
{
printf(m - n <= 0 ? “s” : " ");
}
void B(float m, float n)
{
printf(m - n <= 0 ? “’” : " ");
}
void D(float m, float n)
{
printf(m - n <= 0 ? “D” : " ");
}
void l(float m, float n)
{
printf(m - n <= 0 ? “!” : " ");
}
typedef void(*ps)(float, float);
int main()
{
ps j[50] = { H,H,H,H,a,p,p,y,M,o,t,h,e,r,B,s,D,a,y,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l,l };
system("color FC");
int i = 0;
//Sleep(1000);
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;
float m = a*a*a, n = x*x*y*y*y;
j[i](m, n);
//printf(a*a*a - x*x*y*y*y <= 0 ? "M" : " ");
Sleep(1);
}
i++;
putchar('\n');
//Sleep(200);
}
putchar('\n');
putchar('\n');
system("pause");
}