Original Post
I''m reading a book on C++ and I''m not quite getting something. You have the header file that prototypes your class. Then you have a .cpp that defines your functions. What do you include in your file that actually uses all of this? .h or .cpp? The book is making a header file, then a definition file that includes the header, then the actual problem-solving file that includes the definition .cpp file. But I see a lot of source files that include the .h. So where is the definition file? And if your file using the .h file IS the definition, why is the book using a seperate file for this?
Can anyone make sense of my paragraph and then tell me what''s going on?
subnet_rx