Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: wildfrank on January 14, 2013, 03:27:41 am
-
I've spent about 15 minutes searching for a list of status codes...both on the web and in this forum.
Is there a list somewhere? So far I have seen status 13 and 15 in my silly "hello, world" script.
Thanks!
-
Add an "return 0;" to the end of the program.
Make sure you declare main correctly http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1044841143&id=1043284376 (http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1044841143&id=1043284376)
Tim S.
-
I've spent about 15 minutes searching for a list of status codes...both on the web and in this forum.
Apart from zero (meaning "it worked") there are really no "official" exit codes for C or C++ programs - it's up to the individual application to decide what to use.
This is nothing specific to Code::Blocks, BTW, and you would be better off asking such language questions on sites like Stack Overflow or http://www.reddit.com/r/learnprogramming.