|
-
April 29th, 2011, 04:55 PM
#3
Re: about return value
 Originally Posted by HarryCummings
Why is that sort of return supposed to be "standard" ?
Return is return.
"Switch" to select cases for return code that might be predefined as const and documented for references
Thanks for your response. Because in C convention, people tend to return 0 for success, but in C++ some functions will return false for fail, so I am not sure what should I return for success and let it make sense for most people now.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|