Pokémon Rate My Team

Wall for stall_fest (page 5)

Thanks! And yeah, sure!
What's your Timezone? Mine's CEST
Apr 30, 2019 by Syl ™
I'm also setting up a Discord account.
Apr 30, 2019 by Cobruks
I'm good, just training up my shiny Pokemon
Apr 30, 2019 by Cobruks
Specifically in C++, returning 0 in the function Main tells it the program executed with status 0: success, meaning the program executed as intended; whereas, returning 1 in Main tells the program it executed with status 1: failure, and will generate an error message telling you the program has failed. Specifically, this is supposed to be used to detect possible problems if the system can fail-state. :P

For example, having a variable that is used to divide something can bring erroneous results if that variable is 0, so before dividing that thing by the variable, you may want an if statement to check if it is zero, and if it is, return 1. :P

Therefore, returning 1 from main is not usually used when publishing a program, as it tells nothing to the user of the program. Actually, the assert function does something very similar: it stops the program if it evaluates to false, but it also tells what line, file, and expression failed. This is also used only for checking logical errors. The advantage to using 'return 1;' is that it can go in more places than assert, but assert can be disabled with '#include NDEBUG' so that it can be published without being removed (which is important when you have 5 1000+ line files that you don't want to go through and remove every assert from. :P

I hope my mind bomb didn't inflict a migraine upon you. :P
Apr 30, 2019 by Staka~
How are you doing?
Apr 29, 2019 by Cobruks
Hey Blackace, it's been a while
Apr 29, 2019 by Cobruks
You're welcome.
Apr 28, 2019 by Azelfeo
Okay :P. Enjoy yourself!
Apr 26, 2019 by Azelfeo
So you'll open on June 8 and close on June 16?
Apr 25, 2019 by sumwun
Haha. But, you probably wouldn't want a joke name :P (if that's what it is). You'd quickly get tired of seeing it.
Apr 24, 2019 by Azelfeo