不用数组就用List,list自己也有求最大值的方法Listtmplist=newList();tmplist.Add(1.11);tmplist.Add(1.12);doublemax=tmplist.Max();分数有小数点就用double,没有就用intenger