C语言去除字符串中的空格
#include "string.h" int i=0, j=0; int len = (int)strlen(buf); while (i != len) { if (buff[i] != ' ') buff[j++] = buff[i]; i++; } buff[j]=0;
C语言去除字符串中的空格
#include "string.h" int i=0, j=0; int len = (int)strlen(buf); while (i != len) { if (buff[i] != ' ') buff[j++] = buff[i]; i++; } buff[j]=0;