Ask your own question, for FREE!
Computer Science 62 Online
OpenStudy (anonymous):

Compiler flashing on screen. I'm new to programming and when I run my program, the compiler just flashes on the screen.

OpenStudy (anonymous):

I'm just experimenting and here's what I'm running #include <iostream> #include <cmath> using namespace std; int main () { const int a = 2, b = 7, i = 0, c = (a>b) ? a : b ; bool error (false), status (true); cout << error << endl << status; cout << " (7==5) evaluates to " << (7==5) << endl; system ("PASUSE"); return 0; }

OpenStudy (anonymous):

try changing `system ("PASUSE");` to `system ("PAUSE");` Alternatively, if you run the program from a console, then it won't disappear when it finishes.

OpenStudy (anonymous):

try this system("pause");

OpenStudy (anonymous):

If you're using Visual Basic, put "Console.ReadKey()" before the end module line

OpenStudy (anonymous):

Spelling. Always the spelling. It ended up working. Thank you all.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!