 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Wed Feb 02, 2011 5:33 am Post subject: |
|
|
F3ar wrote: | Slugsnack wrote: | The return value can be used to determine the success of a program. Standard return values differ for different systems and standards. Usually 0 for success and non-zero for unsuccessful.
http://en.wikipedia.org/wiki/Exit_status
Also a main returning int is part of the ANSI standard and using void will cause a crash on certain systems expecting a return (especially embedded systems). | I don't know about C++, but shouldn't it be:
0, false, null, '' (empty string) - For failure
1, true, 'something' - for success? |
No.
|
|
Back to top |
|
 |
Aniblaze Grandmaster Cheater Supreme
Reputation: 138
Joined: 23 Apr 2006 Posts: 1757 Location: The Netherlands
|
Posted: Wed Feb 02, 2011 9:39 am Post subject: |
|
|
I fucking hate it when developers neglect to put a return value into their methods. Also, it pretty much proves there was no unit testing whatsoever.
|
|
Back to top |
|
 |
Mr.SnowGoon! Advanced Cheater
Reputation: 0
Joined: 20 Sep 2009 Posts: 84 Location: langley, bc
|
Posted: Wed Feb 02, 2011 9:41 am Post subject: |
|
|
Benji wrote: | >C++
I honestly recommend going for C#. |
C# (y)
> jizzed in meh pantz bra
_________________
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|