Home > Back-end >  Small white for help, C program at the end of the program is not printf () is not output, only at th
Small white for help, C program at the end of the program is not printf () is not output, only at th

Time:12-04

Small white for help, C program at the end of the program is not printf () is not output, only at the end of the program will complete the output, a simple example:
Why is the input output after 1 2 3 to 1 2 3
Rather than immediately after the input 1 output 1, input output immediately after 2, input output immediately after 3 3,




The same program, a few months ago my computer is immediately after the input 1 output 1, input output immediately after 2, input output immediately after 3 3, don't know why now becomes the input output after 1 2 3 to 1 2 3, small white o great god give advice or comments

CodePudding user response:

After the input 1, you try to knock a carriage return,

CodePudding user response:

Behind each input number has \ n, I now speculate that might be the MINGW problem, because the same code in VS is input directly output 1
  • Related