Multiple Source Files

Sometimes I make projects whichhave really long coding(sometimes even more that 300 statements.
So could it be possible to create one or more source files and link them and then run your program as if it is written in one source file.
You can declare stuff on a header, implement that in a source file.
Then you #include the header on your main source file and in order to be able of using the stuff declared in there, link the two cpp files into the same program
That is what I have been doing using extern voids.
Topic archived. No new replies allowed.