I am writing a program that is supposed to reduce a fraction to its simplist terms. I can only use <iostream.h> and <string.h>. I have a function working that finds the greatest common divisor and I have a function that will take that and simplify the fraction.

How do I get the data from the first function (the GCD) into the second function (so It can do the math)?