3-7
所属分类:数学计算
开发工具:Visual C++
文件大小:1KB
下载次数:1
上传日期:2017-03-23 17:11:16
上 传 者:
vivi_
说明: 实现下面的数组元素交换位置函数: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外,不得引入其它数组。)
( implement the following array element exchange position function: void swap (int a [], int m, int n) This function can be put n elements of the array a before and after the m-th element exchange position, that is, before the exchange: a1, a2, ..., aM, aM+1, aM+2, ..., after aM+N exchange: aM+1, aM+2, ..., aM+N, a1, a2, ..., aM (requirements: In addition to the array a, shall not introduce other array.))
文件列表:
3-7.cpp (760, 2017-03-06)
近期下载者:
相关文件:
收藏者: