Just for the sake of clarity, let's define what a function prototype is. I've learned that:
is a function prototype, it tells the compiler what a function will return and what arguments must be passed on a call to it. It is used in header files, class method declarations and for forward declarations. while:
Code:
int myfn(int x)
{
// do something in here
}
would be called the function declaration or implementation (well, it contains a function prototype).
I might be wrong but this is the way i have learned, so a header file will most of the times (there will always be exceptions) include function prototypes, but only in some cases will it contain function implementations.
Again, this is how i've learned but i'm no c++ master by any means.
Cheers