In my program I am using a class called Fraction and having the user input a numerator and a denominator and the solving the fraction and then the fraction gets reduced to lowest terms and printed. I am having trouble figuring out how to get the fraction to reduce and then print. This would go in the void Fraction::setFractReduce() function.
What do you have so far for the function? If we can see what you have we can push you in the right direction.
Also something I noticed doing a quick scan of the code you posted is this.
You declare a object of you class in every member function... Why? you don't need them there delete them. I think you are doing this so you can use the private variables of the class? If so you don't need to do that, every member function has access to the private variable of its class.
I suck at fractorials and specially decimal ones but here is a one that uses int's and solves your problem with recursion (Which is probably not the best way to go about it) maybe it can give you some ideas.
1 2 3 4 5 6 7
int Fraction::setFractReduce(int n,int d)
if (d != 0)
setFractReduce(d , n % d); //recursive call
return n; //return n when d equals 0