求一个数组中的最高和次高。 if(h>h1) { h2=h1;h1=h; } else if(h>h2) { h2=h; } 转载于:https://www.cnblogs.com/gui--li/archive/2011/05/31/2064026.html