> I had failed to understand that I needed to run the program via cmd.exe because of course Hello World exits immediately when it's printed the text.
And till this day, people writing command-line programs in an IDE like Visual Studio stumble on this fact, and the workaround is still the same: adding an stdin read or something like system("PAUSE") at the end, pausing the execution until the user hits Enter.