C语言清除字符串中的非数字字符
#include <string.h> while (i != strlen (buff)) { if ((buff[i] >= 48) && (buff[i] <= 57)) { buff_02[j] = buff[i]; i++; j++; } else { i++; } }
C语言清除字符串中的非数字字符
#include <string.h> while (i != strlen (buff)) { if ((buff[i] >= 48) && (buff[i] <= 57)) { buff_02[j] = buff[i]; i++; j++; } else { i++; } }