// 一次遍历,统计每个值出现的次数
int a[100];
int count = [10000];
for (int i = 0;i < a.length(),i++)
{
int temp = a[i];
count[temp]++; //66666
}
统计数组各个元素的出现的次数
猜你喜欢
转载自blog.csdn.net/qing_feng__/article/details/68482431
今日推荐
周排行