简体   繁体   中英

The output in VS code doesn't appear in terminal

i have used debugger and try to debug simple program but no output appear in terminal

photo of the program:

1个

If program was well compiled - then you are a victim of buffered stdout stream, that is used by default with printf function.

Changing call to add \n at the end will solve the problem for you. printf("your tex\n") .

See this SO post to understand background: Why does printf not flush after the call unless a newline is in the format string?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM