C program output in wrong order Eclipse

后端 未结 4 674
天涯浪人
天涯浪人 2020-11-29 12:36

I have set up Eclipse for c programming on my Windows machine, I have successfully run a \"hello, world\" program. However, when I try to ask for user input and run the prog

4条回答
  •  -上瘾入骨i
    2020-11-29 13:19

    Try adding fflush(stdout); after the first printf. This has a decent chance of being of help, in case Eclipse does not auto-flush after '\n'.

提交回复
热议问题