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.