I am looking to compete in the Google KickStart programming competition. I am using C++ in Visual Studio. (not visual studio code) Input parameters are given here as Console arguments, where they can be read with std::cin.
I want to paste the test input parameters into a text file and have the IDE pass them to the program as console arguments (held in the cin buffer). I have done this as defined here
But with this method the command line window will close immediately after the program finishes instead of asking for any key to be pressed. I have tried waiting for dummy input but this does not fix the closing error