//#include "stdafx.h"//vc++6.0加上这一行.
#include "stdio.h"
int main(void){
int a[]={1,2,3,4,5,6,7,8,9,10},m,n,ln,*p;
ln=sizeof(a)/sizeof(int);
while(1){
printf("Input m & n(m,n>=0 m+n<=%d)...\n",ln);
scanf("%d%d",&m,&n);
if(m>=0 && n>=0 && m+n<=ln) break;
printf("Error, redo: ");
}
for(p=a+m-1,n--,m=0;mp[m]^=p[n];
p[n]^=p[m];
p[m]^=p[n];
}
for(m=0;mprintf("\n");
return 0;
}