O.K. I have a program that finds the solution to addding, subtracting, dividing or multiplying a fractions. My problem occurs when I try to find the Greatest common factor. I have the Greatest common factor funtion declared in the class as:
int dogcf(int, int)
In the int main I have it as:
dogcf(int, int);
And in the header for the function i have it as:
int dogcf(int num, int den);
num and den are the numerator and denominator of the problem. When I try to compile it I get an error message that reaads as follows:
fractions3.cpp: In function `int main()':
fractions3.cpp:37: parse error before `,'
What do I have to do to the calling of it in int main() to fix this problem? If anyone knows I would appreciate some help.
Thanks. Kyle