新手表白代码
--代码如下:
#include
#include
#include
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;
}
结果显示:
很有意思的一串代码,大家赶紧试着玩玩。
//转载请注明出处: