新手表白代碼


--代碼如下:

#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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM