广西旅游业的发展经历了5个阶段。在奠基阶段,旅游业经历了由“接待事业型”向什么转变?
参考答案:
“经济产业型”
用“\”划去每组成语中不同类的一个。
①气喘吁吁 万籁俱寂 面面相觑
②忠心耿耿 自作聪明 愚不可及
③举不胜举 数不胜数 自相矛盾
请补充函数proc(),该函数的功能是:交换数组aa中最大和最小两个元素的位置,结果依然保存在原数组中,其他元素位置不变。注意数组aa中没有相同元素。 例如,输入10,20,30,40,50,60,70.80,90,56,则输出90,20,30,40,50,60,70,80,10,56。 注意:部分源程序已给出。 请勿改动主函数main和其他函数中的任何内容。 试题程序: #include<stdlib.h> #include<stdio.h> #define M 10 void proc(int aa[]) int i, t; int max=0, min=0; for(i=0; i<M; i++) if( (1) ) max=i; if( (2) ) min=i; t=aa[max]; (3) ; aa[min]=t; void main() int i; int aa[M]=10, 20, 30, 40, 50, 60, 70, 80, 90, 56; system("CLS"); printf("\n***original list***\n"); for(i=0; i<M; i++) printf("gad", aa[i]); proc(aa); printf("\n***new list***\n"); for(i=0; i<M; i++) printf("%4d", aa[i]);