as the title states, I've been having an issue with the display window. As you rebuild and run the program. It will not give any sort of error but it will successfully rebuild and compile. Tho, the display window will flicker instead of what it suppose to do. Which is, it should stay open.
Now the code that I've been using is working out for me so far, but there has to be another way.
The code that I've been using is:
/*This program is to pause display screen after the program life cycle is ended.*/
#include <iostream>
using namespace std;
void pause()
{
cin.clear();
cin.ignore(numeric_limits<streamsize>::max());
}
/*in main*/
int main()
{
cout << "Please enter to continue...\n";
cin.ignore(numeric_limits<streamsize>::max());
return 0;
}
And no please do not tell me to run the program from command prompt. It was the first thing I did, and it does pretty much the same thing as I run the program from windows.
so....any ideas?
This post has been edited by Nitewalkr: 09 December 2011 - 07:48 AM

New Topic/Question
Reply




MultiQuote






|