摘要: Q1:查找一个整数数组中第二大的数View Code 1 const int MINNUMBER = -32767; 2 int find_sec_max(int data[],int count) 3 { 4 int maxnumber = data[0]; 5 int sec_max = MINNUMBER; 6 for(int i = 1;i < count; i++) 7 { 8 if(data[i] > maxnumber) 9 { 10 sec_max=maxnumber;11... 阅读全文