分类: 字符串

1 篇文章

字符串
字符串 1、异或运算符 1、这里可以用异或运算符来代替temp进行交换的操作 2、例子 ①异或运算符 while(start<end){ ch[start] ^= ch[end]; ch[end] ^= ch[start]; ch[start] ^= ch[end]; start++; end--; } ②普通写法 while(start&l…