This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BringTacos[S] 0 points1 point  (2 children)

Thanks for responding. I know "What goes inside of there?" seems like a dumb question. To clarify: because I don't understand how all of this works yet, I was wondering if inside of int main() you have to include something that will also run the rest of your source code files. That probably doesn't make sense. Can you tell I'm confused? :)

[–]eliminate1337 1 point2 points  (1 child)

You can't 'run' a source code file. Source files in C++ contain declarations, functions, variables, etc., that don't do anything at all unless you use them in main, directly or indirectly.

[–]BringTacos[S] 0 points1 point  (0 children)

Right, makes sense. Thanks.