文件名称:s4
- 所属分类:
- 其他小程序
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 843kb
- 下载次数:
- 0次
- 提 供 者:
- 周
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
4. 实现下面的数组元素交换位置函数:
void swap(int a[], int m, int n)
该函数能够把数组a的前m个元素与后n个元素交换位置,即,
交换前:a1,a2,...,aM, aM+1,aM+2,...,aM+N
交换后:aM+1,aM+2,...,aM+N, a1,a2,...,aM
要求:除数组a外,不得引入其它数组。
-4. To achieve the following elements of the exchange position of the array function: void swap (int a [], int m, int n) the function is able to array a the first m elements with n elements after the exchange of position, that is, the exchange of the former: a1, a2 ,..., aM, aM+1, aM+2 ,..., aM+ N, after the exchange: aM+1, aM+2 ,..., aM+ N, a1, a2, .. ., aM requirements: In addition to an array of a, shall not introduce other array.
void swap(int a[], int m, int n)
该函数能够把数组a的前m个元素与后n个元素交换位置,即,
交换前:a1,a2,...,aM, aM+1,aM+2,...,aM+N
交换后:aM+1,aM+2,...,aM+N, a1,a2,...,aM
要求:除数组a外,不得引入其它数组。
-4. To achieve the following elements of the exchange position of the array function: void swap (int a [], int m, int n) the function is able to array a the first m elements with n elements after the exchange of position, that is, the exchange of the former: a1, a2 ,..., aM, aM+1, aM+2 ,..., aM+ N, after the exchange: aM+1, aM+2 ,..., aM+ N, a1, a2, .. ., aM requirements: In addition to an array of a, shall not introduce other array.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
s4\Debug\s4.exe
..\.....\s4.ilk
..\.....\s4.pch
..\.....\s4.pdb
..\.....\s4a.obj
..\.....\vc60.idb
..\.....\vc60.pdb
..\s4.dsp
..\s4.dsw
..\s4.ncb
..\s4.opt
..\s4.plg
..\s4a.cpp
..\Debug
s4
..\.....\s4.ilk
..\.....\s4.pch
..\.....\s4.pdb
..\.....\s4a.obj
..\.....\vc60.idb
..\.....\vc60.pdb
..\s4.dsp
..\s4.dsw
..\s4.ncb
..\s4.opt
..\s4.plg
..\s4a.cpp
..\Debug
s4