#include<stdio.h>
struct Count
{
int c;
int count;
};
int main()
{
int list[2][3]={4,55,6,44,55,55};
struct Count conter[10000];
int i,j;
for(i = 0; i < 10000; i++)
{
conter[i].c = i;
conter[i].count = 0;
}
for(i =0; i < 2 ; i ++)
for(j=0;j<3;j++)
conter[list[i][j]].count ++;
int max=0;
for(i = 0; i < 10000; i++)
{
if( conter[i].count>0 )
{
if (conter[i].count>max) {max=conter[i].count;j=i;};
}
}
printf("出现次数最多的数是=%d\n",j);
return 0;
}