打印楊輝三角

void YHTriangle(int Row)//參數傳入打印的行數。 { assert(Row > 0); int i, j; //按照給定的行數在堆空間上申請二維數組用來存放楊輝三角。 int **arr = (int **)malloc(sizeof(int *)*Row); for (i = 0; i < Row; i++) { arr[i] = (int *)mallo
相關文章
相關標籤/搜索