I need to make a header file and I made the code (i hope it's right!) for the main part.
Prompt: The greatest common divisor of integers x and y is the largest integer that evenly divides both x and y. Write a recursive function gcd taht returns the greatest common divisor of x and y. The gcd of x and y is defined recursively as follows: If y is equal to 0, then gcd(x,y) is x; otherwise gcd(x,y) is gcd(y,x%y) where % is remainder operator.
Are you wanting a function with templates or not? Template functions must be inline therefor must be declared and implemented in the header. If not... then int gcd(int a, int b); will be fine place somewhere in the header.