▲ 744 ▼ War Crimes (lemmy.world) submitted 3 years ago by Shady_Shiroe@lemmy.world to c/programmerhumor@lemmy.ml 37 comments fedilink hide all child comments
[–] Neon@kbin.social 3 points 3 years ago* (2 children) i'm not used to c++ but... int main() ? permalink fedilink source hideshow 2 child comments replies: [–] exoplanetary@lemmy.world 13 points 3 years ago (1 child) Yep, main returns an int in C++. It’s for the return code - if it returns 0, that indicates the program ran ok, if it returns anything else some sort of error occurred. permalink fedilink source parent hideshow 1 child comment replies: [–] Neon@kbin.social 3 points 3 years ago that actually makes sense. thanks for that explanation. permalink fedilink source parent
[–] exoplanetary@lemmy.world 13 points 3 years ago (1 child) Yep, main returns an int in C++. It’s for the return code - if it returns 0, that indicates the program ran ok, if it returns anything else some sort of error occurred. permalink fedilink source parent hideshow 1 child comment replies: [–] Neon@kbin.social 3 points 3 years ago that actually makes sense. thanks for that explanation. permalink fedilink source parent
[–] Neon@kbin.social 3 points 3 years ago that actually makes sense. thanks for that explanation. permalink fedilink source parent