第1个回答 2011-10-17
public Students getMaxheight(Students[] stu){
if(stu == null) return null;
if(stu.length == 0) return null;
var maxStudent = str[0]
foreach(var x in stu)
{
maxStudent = maxStudent .Height > x.Height ? maxStudent :x;
}
return maxStudent ;
}