Compiler flashing on screen. I'm new to programming and when I run my program, the compiler just flashes on the screen.
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; }
try changing `system ("PASUSE");` to `system ("PAUSE");` Alternatively, if you run the program from a console, then it won't disappear when it finishes.
try this system("pause");
If you're using Visual Basic, put "Console.ReadKey()" before the end module line
Spelling. Always the spelling. It ended up working. Thank you all.
Join our real-time social learning platform and learn together with your friends!