• Neon
    link
    fedilink
    3
    edit-2
    2 years ago

    i’m not used to c++ but…
    int main() ?

    • @[email protected]
      link
      fedilink
      132 years ago

      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.

      • Neon
        link
        fedilink
        32 years ago

        that actually makes sense. thanks for that explanation.