c++打印心形

用c++打印一個心形的圖案:ios #include<iostream> #include<cmath> using namespace std; int main() { float x, y; for (y = 1.5f; y >-1.5f; y -= 0.1f) { for (x = -1.5f; x <1.5f; x += 0.05f)
相關文章
相關標籤/搜索