Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   Why doesn't certain programs run? (http://www.programmingforums.org/showthread.php?t=14969)

wannabe7 Jan 17th, 2008 7:18 PM

Why doesn't certain programs run?
 
Sometime, when I create simple programs, it simply doesn't run on the compiler. It shows that I have no "errors" but it also says "execution terminated".

Why does this happen and what can I do?
Thank you.:D

Sane Jan 17th, 2008 7:19 PM

Re: Why doesn't certain programs run?
 
Could you post an example of some code that this happens with?

wannabe7 Jan 17th, 2008 7:31 PM

Re: Why doesn't certain programs run?
 
Well, the problem is that sometimes the compiler runs the program and sometimes it doesn't; even when the program has no errors. By the way, I use Dev-C++ beta. Might that be the problem?

King Jan 17th, 2008 9:41 PM

Re: Why doesn't certain programs run?
 
Is it the exact same code that sometimes runs and sometimes doesn't? Your program could have an error in it and be crapping out at runtime. Next time it happens post the code here so we can try it to see if it's your compiler or your code.

Ancient Dragon Jan 17th, 2008 11:14 PM

Re: Why doesn't certain programs run?
 
>>so we can try it to see if it's your compiler or your code.
Don't blaim the compiler, that compiler has been tested on thousands of computers all over the world. The chances of a compiler bug now is almost nill. Most likely you have a bug in your program. The only way for anyone here to tell you what that bug is is to post the code.


All times are GMT -5. The time now is 3:40 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC