I am working on a much more complex program than I am used to and I have no idea why << in my cout statement, and < in a if statement will not work. Any advice on the program overall will be helpful also! Thanks!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Fraction product = one.multiply(two);
Fraction added =one.add(two);
Fraction subtracted = one.subtract(two);
Fraction divided = one.divide(two);
cout<< "When the fractions are divided the answer is: " << divided.print() << endl;
There is no use to pass void to cout. Just place divided.print() routine in their own statement.
As for if, your parenthesises in condition aren't balanced. just remove them all and olace where needed.