Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我设法让 cygwin 与 eclipse 一起工作,并制作了默认的 hello world 程序。运行程序很好,它在控制台中正确输出。但是当我调试并单步执行程序时,printf 语句不会出现在控制台中。我需要更改某个设置吗?
您应该添加一次或之后printf
printf
fflush(stdout);
由于我不太清楚的原因,程序输出只会在程序结束时出现。每次有printf时,调用此调用将强制输出