I am trying to write a C++ program in Visual Studio, and the console shows some of what I wanted, followed by some blank lines, then the rest of the output.
I tried leaving the window open and resizing it, and that fixed the problem (no more blank lines). I want to know if there's a way I can do it without having to resize and/or leave the window open every time.