/*
* 对char数组从start到end位置进行翻转
*/
void reverse(char[] str,int start,int end){
char temp;
while(start<end){
temp = str[start];
str[start++] = str[end];
str[end--] = temp;
}
}
/*
* 对char数组从start到end位置进行翻转
*/
void reverse(char[] str,int start,int end){
char temp;
while(start<end){
temp = str[start];
str[start++] = str[end];
str[end--] = temp;
}
}