2019独角兽企业重金招聘Python工程师标准>>> C++中没有现成的获取数组元素个数的方法,只有自己写。 int count = sizeof(array) / sizeof(array[0]); 转载于:https://my.oschina.net/tanyixiu/blog/174243