Sierpinski triangle(謝爾賓斯基三角形)C語言控制檯實現

代碼:數組 #include <stdio.h> #include <stdlib.h> #define LEN 70 //數組寬/高 int SIZE=5; //遞歸次數 char arr[LEN][LEN]; //定義二維數組 void chu(){ //初始化 int j; int j_=SIZE-1; int p=3; for(j=0;j<j_;j++){ p*=2;
相關文章
相關標籤/搜索