Hi,
I'm new to C++ but I have a Java background. Up until now I have been using header files to define my external classes.
However, I've been reading a book, C++ How to Program, and they use the header as an interface (define the prototypes of a class, I think they're called), and use another file (.cpp) to define the class functions.
They don't say why they do this. My functions work fine in the header file, and in Java you use the one file to define an external class. I just think it's just more typing you have to do and I don't see, yet, any advantages to it.
Can some enlighten me? Should I continue using header files this way?
Thanks