Could you explain a bit more what you mean by holding it open?
The program ends when the end of Main is reached.
Use some kind of loop to keep it going.
If you mean the console window from hitting F5 in Visual Studio you can do
CTRL-F5 instead to prevent the window from closing after it is finished
running.
If you mean the console window from hitting F5 in Visual Studio you can do
CTRL-F5 instead to prevent the window from closing after it is finished
running.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.