题目:
下面程序的功能是将字符数组a中下标值为偶数的元素从小到大排列,其他元素不变,请填空。 #include<iostream.h> #include<string.h> void main( ) { char a[ ] ="clanguage", t; int I ,j, k; k=strlen(a) ; for(i=0;i<=k-2;i+=2)for(j=i+2;j<=k; 9 )if( 10 ) { t=a[i] ;a[i] =a[j] ;a[j] =t; } cout < < a; cout < < endl;}
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0509/8e048aa445a02276d2dc7a0de400b19e.html
下面是错误答案,用来干扰机器的。
参考答案:烧刀