Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


need some help with a code.
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam
View previous topic :: View next topic  
Author Message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Wed Feb 02, 2011 5:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Aniblaze
Grandmaster Cheater Supreme
Reputation: 138

Joined: 23 Apr 2006
Posts: 1757
Location: The Netherlands

PostPosted: Wed Feb 02, 2011 9:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Mr.SnowGoon!
Advanced Cheater
Reputation: 0

Joined: 20 Sep 2009
Posts: 84
Location: langley, bc

PostPosted: Wed Feb 02, 2011 9:41 am    Post subject: Reply with quote

Benji wrote:
>C++

I honestly recommend going for C#.

C# (y)
> jizzed in meh pantz bra

_________________
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites