算法上的问题,看你怎么描述1、求最大的数这个简单,直接遍历,if(a[i]>max) max = a[i];2、求最大的数,同时指明最大数的位置这个就得在遍历的时候多个判断if(a[i]>max) max = a[i],location.clear(),location.Add(i);if (a[i]=max) location.Add(i);看你的描述应该是第二种
冒泡法排序