C++獲取數組長度 一、靜態數組。 比如 int int_ary[5] ,靜態數組在編譯的時候就知道了數組長度,這對編譯器來說挺好實現的。 用得最多的大概就是sizeof了吧: #define countof_ma ...