Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Microsoft Visual Studio 11 and C++
#9
For future reference if you have the std_lib_facilities.h file you can use the function call:
keep_window_open();

This will keep the window open until a character is entered.
Or you could make your own code that keeps the window open by adding this at the end of your main, but before your return statement.
string s;
cout << "Enter a character to exit...\n";
cin>>s;
Reply


Messages In This Thread
Microsoft Visual Studio 11 and C++ - by Haseo - 2012-04-06, 11:49 PM
Microsoft Visual Studio 11 and C++ - by Fiel - 2012-04-06, 11:59 PM
Microsoft Visual Studio 11 and C++ - by Haseo - 2012-04-07, 12:34 AM
Microsoft Visual Studio 11 and C++ - by Locked - 2012-04-07, 12:35 AM
Microsoft Visual Studio 11 and C++ - by Haseo - 2012-04-07, 12:57 AM
Microsoft Visual Studio 11 and C++ - by Fiel - 2012-04-07, 01:30 AM
Microsoft Visual Studio 11 and C++ - by nRxUs - 2012-04-07, 01:57 AM
Microsoft Visual Studio 11 and C++ - by Haseo - 2012-04-07, 02:03 AM
Microsoft Visual Studio 11 and C++ - by Fiel - 2012-04-07, 02:05 AM
Microsoft Visual Studio 11 and C++ - by Haseo - 2012-04-07, 03:10 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)