就把中文字符当作英文处理,不过每行记得输出2个字符,那样才是一个完整的中文文字: #include int main(void) { char word[256]; int i=0,j; while(word[i++]=getchar() != '\n') { ; } for(j=0;j求采纳