I have tried numerous approaches to stop the console from closing - breakpoints, pause and listener functions, sample code, and requests for help on another forum; still no solution. except, if I use a new project, then the console stays open.
My intuition is that this is related to a solution I implemented in an iterator header. The code compiles. My hope is that there is a setting in the VS2008 (same behavior in VS2005) that I should change. what is strange is that I commented out all my code and left a test section with a breakpoints, and still the console closes. "start without debugging" opens the console but does not display the test text.
int main()
{
cout << "Welcome to the Automating from Model and Sensor Data" << endl << endl;
while (true) {
int choice = GetMenuChoice();
if (choice == 0) break;
//DoMenuChoice(lex, choice);
}
return 0; //goodbye!
}