#include int main(){ char c; while( (c=getchar())!='\n') { printf("%c\n",c); } return 0;}//万一不对的时候,可以在加上清零函数clrscr();你的错误是printf后面没有东西
建议装个linux虚拟机