problems running simple prog

This is a discussion on problems running simple prog within the C++ Programming forums, part of the General Programming Boards category; Hi all, I am very new to c++, in fact I have only read a few beginners tutorials in the ...

problems running simple prog

Hi all, I am very new to c++, in fact I have only read a few beginners tutorials in the last 2 days, however... I do script for a game NWN which involves some c++ based programming although there are alot of similarities theres also alot of differences, Anyway I just thought I would experiment by creating a simple number guesssing game using the Dev-c++ compiler, the problem is that the program will not even run, could this be a bug or is it in the program I created?

Hmmm, well if I hit compile and run it won't open a command line window, this happened yesturday with a pre-written program I tried, it did not run then later I tried once again and it did run. Is anyone familiar with the Dev-C++ compiler maybe I am not using it in the correct way I guess, sorry for all of the questions but I am very eager to learn.

Yes, I'm familiar with Dev-C++. Is it opening and closing real quick or is it not opening at all? Because if your not getting any compiler or linker errors, then the program should open.

Edit: Oh, if you copied my code exactly, then you'll get an error cause I didn't paste the last end brace by accident, I changed it now. If that wasn't your problem, then please answer my other question.

I had noticed the missing bracket, there were no errors, it seems like its running because if I go to run the a second time it only has an option to reset prog yet theres no program for me to see if you get what I mean, the same thing happened yesturday, one minute it would not show, the next time I tried it would but I have tried numerous times.

Ok I changed it to int nNumIGuess = 5; temporarily, compiled and run but still made no difference. The prog is running in processes but not in applications in the task manager, are there any other good free windows based compilers out there maybe that could help.