///
/// 求出数组中出现次数最多的数字
///
public class MaxCounter
{
///
/// numbers:要统计的数组,count:统计最多资料
/// 返回出现次数最多的数字
///
public int GetMaxCounts(int[] numbers, out int count)
{
Hashtable _hash = new Hashtable();...
代码在txt文档中编写,有错误处自行修改下。int num = new int[]{1,2,3,1};int num2 = new int[num.length];int b = 0;for(int i = 0; i < num.length;i++){int a = 0;for(int j = 0; j < ...
int num = new int[]{1,2,3,1};int num2 = new int[num.length];int b = 0;for(int i = 0; i < num.length;i++){int a = 0;for(int j = 0; j < num.length;j++){if(num[i...