摘要: 在2.10中的inplace_swap函数的基础上,你决定写一段代码,实现将一个数组中的元素两端依次对调,你写出下面这个函数: 1 void reverse_array(int a[], int cnt) 2 { 3 int first, last; 4 for(first = 0,... 阅读全文
posted @ 2014-11-17 23:28 枫竹梦 阅读(2574) 评论(0) 推荐(0) 编辑