additional commentary on the difference between “announcement” and “definition”. Both of you are definitions:
void SomeFunction( int Argument ) {
A prototype would be a declaration and would look like this:
void SomeFunction( int ) ;
So, you can have a declaration in your heading, as indicated above. Then in your cpp you define the function as follows:
void SomeFunction( int Argument ) { Argument = Argument + 1; }
As you can see, the declaration does not indicate the name of the argument, but the definition then indicates it and uses it.
source share