void reverse_array(int a[],int cnt){ int first,last; for (first = 0,last = cnt - 1;first < last;first ++,last –){ inplace_swap(&a[first],&a[last]); } }
转载于:https://www.cnblogs.com/flowjacky/archive/2012/11/07/2758173.html
void reverse_array(int a[],int cnt){ int first,last; for (first = 0,last = cnt - 1;first < last;first ++,last –){ inplace_swap(&a[first],&a[last]); } }
转载于:https://www.cnblogs.com/flowjacky/archive/2012/11/07/2758173.html