统计数组各个元素的出现的次数

// 一次遍历,统计每个值出现的次数
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