You should declare the function before you use it
main() is an exception. All the other functions need to be declared before use. Just put your function prototype at the beginning of the program.
BTW: It's better to use <iostream> than <iostream.h>
BTW: It's better to use <iostream> than <iostream.h>
Yeah!