Ok, I'm fine with creating a .cpp file with main() and then interacting with .h files using classes and namespaces and whatnot.
My understanding is c++ compiles all files into one big file then into my .exe file. For that reason, include<> statements can be included multiple times if I'm not careful.
Where I'm confused is using more than one .cpp file. For example, I have two programs, each with a main() in a .cpp file and each has one or two .h files. How do I link the main() .cpp file to the other cpp files? Do I make them into namespaces and include them via that method?