I understand that you can include self-made header files in projects, but what if you had multiple source files? How would you include files that don''t end in .h to your main source file? Also, what kind of things should go in header files and source files? Thanks a lot.
As far as i know, the compiler doesn''t differentiate between .cpp and .h files. You should in general put the program code in the .cpp files and all the classes, functions that will be used in more than one .cpp file, definitions and stuff like that in the .h files.
The .h files are the interface for you .cpp files, so you include the .h files, and be sure that your make file or Visual C++ project includes the cpp files. The compiler will build each file one at a time, and then the Linker will ensure that it is all there.