void _word(char* array) {
char ch;
int i = 0;
while ((ch = getchar()) != '\n') {
if (i==0&&isspace(ch)) {
continue; //省略前面的空白字符
}
else if (i > 0 && isspace(ch)) {
while (getchar() != '\n') {
continue; //丢弃输入行的其余字符
}
break;
}
else {
array[i] = ch; //单词字母读入数组
i++;
}
}
return;
}