Please help as I cannot run my program. I have compiled successfully however,
the console window does'nt remain open even though the "Environment Options"
are correctly selected.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Console mode apps don't ordinarily run from the desktop.
What you are experiencing:
a) click on your .exe,
b) console flashes and
c) console disappears,
is completely normal.
You have two (2) options:
1) learn how to open a dos console and change directories to your working sub-
directory,
2) add the following code to the very bottom of your "main()" function:
int main()
{
// do stuff
system("PAUSE");
return 0;
}
That will allow the console window to remain open until you respond.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
Please help as I cannot run my program. I have compiled successfully however,
the console window does'nt remain open even though the "Environment Options"
are correctly selected.
Console mode apps don't ordinarily run from the desktop.
What you are experiencing:
a) click on your .exe,
b) console flashes and
c) console disappears,
is completely normal.
You have two (2) options:
1) learn how to open a dos console and change directories to your working sub-
directory,
2) add the following code to the very bottom of your "main()" function:
That will allow the console window to remain open until you respond.