I need help!
I just started in C++, and I downloaded a complier called Bloodshed Dev-C++ beta of the newest version. I wrote a simple program, tested it for errors and compiled it. When I tried to execute the code, a Comand Prompt window opens up, and the end result of my program is in there. Only problem is that the window pops up for like less than a second and then it closes.
Does anybody know what is happening and how I can fix this?
:confused: :confused: :confused:
Add std::cin.get(); before return 0; and it waits for user to hit enter before it closes. I hope that helps so it would look like:
std::cout << "Hello!";
Try reading this FAQ which points you to this FAQ which has several possible solutions.
Hey stickman! U know how helpful that was? I finally got the window to stay! By the way this is my first day of C++. My program was just simple addition. I added 6 and 4 together.
That link was already posted just to let you know.
EDIT: No problem on the window staying up thing. I had that question when I first started also. A lot of people have helped me so I want to help back.