摘要:
#include <stdio.h>const int MUNNUMBER=-32767;int findsecmax(int data[],int count){int i=0;int maxnumber=data[0];int secmax=MUNNUMBER;for(i=1;i<count;i++){//跟后面的数一个一个比对if(data[i]>maxnumber){secmax=maxnumber;//把最大的复制给第二大的maxnumber=data[i];//把当前值复制给maxnumber}else{if(data[i]>secmax)secmax 阅读全文
posted @ 2012-12-08 13:28
一枚程序
阅读(229)
评论(0)
推荐(0)

浙公网安备 33010602011771号