I'm currently writing a very simple program for a class, and am quickly realizing that I never really knew what the System("pause") command was doing.
The prompt for the program demands that I have the Command Arguments (located in Debug->Properties->Configuration Properties->Debugging in Visual Studio 2013) set to an input file so that I can read from the file using "cin". After setting this property, however, I've noticed that the familiar System("pause") command no longer works to keep the console window open. (I changed the property back to its default and it worked again, so this seems to be the problem.)
Any explanations? I'm really curious as to what System("pause") is really doing in the background now.