用宏来求数组元素个数

#define NELEMENTS(array) (sizeof(array) / sizeof((array)[0]))

 

posted on 2013-03-11 21:19  chenkkkabc  阅读(576)  评论(0)    收藏  举报