void Reverse(int cry[],int begin,int end) { while(begin<end) { cry[begin]= cry[begin]^cry[end]; cry[end]=cry[begin]^cry[end]; cry[begin]=cry[begin]^cry[end]; begin++; end--; } }
转载于:https://www.cnblogs.com/renxs/p/3161825.html
void Reverse(int cry[],int begin,int end) { while(begin<end) { cry[begin]= cry[begin]^cry[end]; cry[end]=cry[begin]^cry[end]; cry[begin]=cry[begin]^cry[end]; begin++; end--; } }
转载于:https://www.cnblogs.com/renxs/p/3161825.html