Shady_Shiroe@lemmy.world to Programmer Humor@lemmy.ml · 1 year agoWar Crimeslemmy.worldimagemessage-square36fedilinkarrow-up1681arrow-down121
arrow-up1660arrow-down1imageWar Crimeslemmy.worldShady_Shiroe@lemmy.world to Programmer Humor@lemmy.ml · 1 year agomessage-square36fedilink
minus-squareNeon@kbin.sociallinkfedilinkarrow-up3·edit-21 year agoi’m not used to c++ but… int main() ?
minus-squareexoplanetary@lemmy.worldlinkfedilinkarrow-up12·1 year agoYep, 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.
minus-squareNeon@kbin.sociallinkfedilinkarrow-up2·1 year agothat actually makes sense. thanks for that explanation.
i’m not used to c++ but…
int main()
?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.
that actually makes sense. thanks for that explanation.