I need help using multiple source files
Most of the C/C++ programs I have written contain all my variables and functions in one file with a main(). I want to learn how to split my code between multiple files, but it seems that I have never been showed how to do this. The main reason I want to do this is because I want to be able to put functions that I commonly use into a file and compile it with the file that contains main(). Does anyone have a tutorial that shows how to do this? Only one fiel can contain the function main(), correct? If this is so how do these other source files look?
|