i dont know why but my program only flashes for a quick second and goes away so i used system pause and it sill didnt work, i wrote it like system("PAUSE");
why wont this work?
i'm using devC++ 4.9.9.2 beta
Thanx for your help!!
C++ help...system("PAUSE");?
Add this line to your to the top of your program
#include %26lt;iostream%26gt;
using namespace std;
Now replace system("PAUSE") with
cin.get();
See if that works
Reply:Run your executable from the command line. If you're using Windows, go to start-%26gt;run-%26gt; type "cmd" in the box and press enter. When the command line comes up navigate to your program and run it. You'll be able to see the output then.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment