Have some questions about .h files.
Posted on 2004-08-16
Hi I'm semi-new at C++ and need some clearification. I understand that the standard library has a corresponding header file that contatins the function prototypes for all the functions in that library.
But why would I need to create my own if there are standard ones already out there?
Is it just that the more complicated your source code gets you might need to write your own .h file?
Why does it have to be a seperate file? Can't I just put that information in my .cpp file?
Can you post some small or general examples of what a .h file you'd create on your own would contain?