Whenever you have functions in a header file, you need a prototype also. The prototypes live in another file. Essentially, a header file has two files. This file contains the actual implementation of the function. One thing that you should make sure of is that the compiler never compiles the header file twice.
Stuff goes here . .
IF This creates a situation where the compiler will only go over this code once. If you have come this far and you wish to continue learning, I do have a source code section. If you really want it though, tell me. If there is anything specific that you were hoping to find here, please let me know.