#include<iostream> using namespace std; const int N = 100; int *p = new int[N]; int e[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; //void my_swap(int *x, int *y){ //int t; //t = *x; //*x = *y; //*y = t; //} void my_swap(int &x, int &y){ int t; t = x; x = y; y = t; } //void my_swap(char *x, char *y){ //char t; //t = *x; //*x = *y; //*y = t; //} void my_swap(int *p, int m){ for (int i = 0 ,j = m - 1 ; j>=i; i++,j--) my_swap(p[i], p[j]); } template<typename T> void my_swap(T *x,T *y) { T t; t = *x; *x = *y; *y = t; } int main(){ for (int i = 0; i < N; i++) p[i] = i+1; int a