//去除左边空格
void TrimLeft(char* str) { if (*str == ' ')return; char* t = str; while (*t == ' ')t++; while (*str++ = *t++); } //去除右边空格 void TrimRight(char* str) { while (*str)str++; while(*(--str) == ' ')*str = '
//去除左边空格
void TrimLeft(char* str) { if (*str == ' ')return; char* t = str; while (*t == ' ')t++; while (*str++ = *t++); } //去除右边空格 void TrimRight(char* str) { while (*str)str++; while(*(--str) == ' ')*str = '