此函数的作用是调换字符串中的两个相邻的字符并赋给另一个字符串 int main() { char from[] = "BADCFEHGJILKNMPORQTSVUXWZ"; char to[] = "........................."; cout<<"from:"<<from<<endl; cout<<"to: "<<to<<endl; _swab(from, to, sizeof(from)); cout<<"from:"<<from<<endl; cout<<"to: "<<to<<endl; }