题目
编写程序,用选择法对10个整数按从小到大顺序排序
提问时间:2021-04-16
答案
#include
void sort(int array[],int n)
{ // n 为数组元素个数
x09int i,j,k,temp; // i 为基准位置,j 为当前被扫描元素位置,k 用于暂存出现的较小的元素的位置
x09for(i=0;i
void sort(int array[],int n)
{ // n 为数组元素个数
x09int i,j,k,temp; // i 为基准位置,j 为当前被扫描元素位置,k 用于暂存出现的较小的元素的位置
x09for(i=0;i
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
最新试题
- 1The technician __ to find out what is wrong with the generator.
- 2M=(X|F(x)=0) N=(X|g(x)=0)则方程F(x)*G(x)=0的解及是什么
- 30是最小的自然数吗?
- 4在三角形abc中,若c=根号下a^2+b^2+ab,则角c的度数是
- 5scusa ti amo scusa ti amo这句外语是什么意思?
- 6Is your bedroom on the third floor_____the house?A.of B.in
- 7解一道矩阵方程
- 8大气对物体产生的压强方向总是垂直与物体的表面吗?
- 9济南的冬天全段写小雪之美妙,主要通过其他的景物来进行烘托,这些景物是
- 10Go past the bank and turn left at the first crossing
热门考点