一 字符串中的字节逆转(this is a student ==> tneduts a si siht)
/************************************************************************* > File Name: testStringByte.h > Author: qiaozp > Mail: qiaozongpeng@163.com > Created Time: 2014-9-30 11:21:15 > Attention: this is a student ===> tneduts a si siht ************************************************************************/ #include <iostream> #include <string.h> using namespace std; void reverseByByte(char* p, char* e) { //方法就是按位赋值到目的字符串 int i = 0; int size = strlen(p); e[size] = '