Using Microsoft Visual Studio, how do you get output to stay on the screen after the program is done?
January 7th, 2009 |--
Microsoft Visual Studio supports C?
Ok well I'll just assume you're using cin and cout not printf and sprintf.
Multiple methods:
char inp[2];
cout << "Press enter to continue" << endl;
cin >> inp;
return 0;
getch() is another method: example
cout << "Press a key to continue" << endl;
getch();
return 0;
#If you have any other info about this subject , Please add it free.# |