收起
删除字母没有那么麻烦
int j; for (int i = 0, j = 0; arr[i]; i++) { if (arr[i] == c) continue; arr[j++] = arr[i]; } arr[j] = '\0';
报告相同问题?