CPP | .h files (C++)
I was just wondering what the difference between .cpp and .h files is? What would I use a header file (.h) for and what would I use a cpp file for? In general, and it really could be a lot less general: .h (header) files are for declarations of things that are used many times, and are #include d in other files .cpp (implementation) files are for everything else, and are almost never #include d Technically, there is no difference. C++ allows you to put your code in any file, with any format, and it should work. By convention, you put your declarations (basically, that which makes up your API)