Data
Pokémon data
Pokédex
Moves
Type chart
Abilities
Items
Evolution chains
Pokémon locations
Sprite gallery
Quick links
National Pokédex
Pokémon list with stats
Legends: Arceus Pokédex
Scarlet & Violet Pokédex
Mechanics
Game mechanics
Breeding & egg groups
Move Tutors
Dual type chart
Effort Values (EVs)
Natures
IVs/Personality
Useful tools
Moveset searcher
Type coverage checker
Text list generator
Games
Pokémon games
Legends Z-A
Scarlet & Violet
Pokémon GO
Legends: Arceus
Brilliant Diamond & Shining Pearl
Sword & Shield
Let's Go Pikachu & Let's Go Eevee
Ultra Sun & Ultra Moon
Sun & Moon
Omega Ruby & Alpha Sapphire
X & Y
Black 2 & White 2
Black & White
HeartGold & SoulSilver
Platinum
Diamond & Pearl
Emerald
FireRed & LeafGreen
Ruby & Sapphire
Crystal
Gold & Silver
Yellow
Red & Blue
Spin-off games
Other
Community/Other
Pokémon Q&A
Pokémon Rate My Team
Chat Room
Meta (Suggestion Box)
Other pages
Pokémon News
Maps/Puzzles
Pokémon name origins
About/Contact us
Search
Pokémon Rate My Team
PokéBase
Meta
Login
Register
All Activity
Questions
Unanswered
Tags
Users
Ask a Question
Rules
Chat
User stall_fest
Wall
Recent activity
All questions
All answers
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
Page:
prev
1
...
6
7
8
9
10
11
12
13
14
...
98
next
Useful Posts
PokéBase starter guide
How to change your username
How to add a user avatar
Why was my post hidden?
The points system
Flags vs Downvotes
Report users
PokemonDb Tournaments
PokemonDb Discord server
PokemonDb Showdown server
...