I posted this in another forum, but I think that forum might be dead. I decided to bring this problem to the attention of Anandtechers (w00t!).
I am just beginning my adventure into the world of programming and am having trouble with C++.
Whenever I copy paste example programs into Dev-C++ and compile and run, I only see the program for a split second before it disappears. If the program has input, it allows me to input information, but then it disappears again.
Look at this program for an example:
#include <iostream.h>
int main()
{
cout << "Hello, World!" << endl;
return 0;
}
When I run the program, it just flashes for a fraction of a second and disappears.
I'd be very grateful if someone can help me with this woe.
I am just beginning my adventure into the world of programming and am having trouble with C++.
Whenever I copy paste example programs into Dev-C++ and compile and run, I only see the program for a split second before it disappears. If the program has input, it allows me to input information, but then it disappears again.
Look at this program for an example:
#include <iostream.h>
int main()
{
cout << "Hello, World!" << endl;
return 0;
}
When I run the program, it just flashes for a fraction of a second and disappears.
I'd be very grateful if someone can help me with this woe.