#include #include #define N 20main( ){ int a[N]={7,10,12,0,3,6,9,11,5,8},n=10,i,k,m,max,t;system("CLS");for ( i = 0; i
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/18 20:30:26
#include#include#defineN20main(){inta[N]={7,10,12,0,3,6,9,11,5,8},n=10,i,k,m,max,t;system("CLS");for
#include #include #define N 20main( ){ int a[N]={7,10,12,0,3,6,9,11,5,8},n=10,i,k,m,max,t;system("CLS");for ( i = 0; i
#include
#include
#define N 20
main( )
{ int a[N]={7,10,12,0,3,6,9,11,5,8},n=10,i,k,m,max,t;
system("CLS");
for ( i = 0; i
#include #include #define N 20main( ){ int a[N]={7,10,12,0,3,6,9,11,5,8},n=10,i,k,m,max,t;system("CLS");for ( i = 0; i
if ( a[k]>max )
t = a[0]; a[m]=a[0]; a[m] = t;应改为 t = a[0]; a[0]=a[m]; a[m] = t;