寫C時,經常要用到計算陣列長度,我一般用下面這種方法: #define LEN(x) sizeof(x) / sizeof(x[0]). 即利用庫函式sizeof來計算陣列長度,這種方法, ...
確定! 回上一頁