使用宏定义,计算数组的成员个数

 

#define TABLESIZE(table)    (sizeof(table)/sizeof(table[1]))

posted @ 2017-09-08 16:05  _小百  阅读(1607)  评论(0)    收藏  举报