I am a little stuck with a fraction program where currently it uses simple but inflexible literal values to show the adding of a fraction, It has three files called fract.h, TestClassFract.cc and fract.cc. I need help in being able to let the user input values themselves instead of using these inflexible literal values,I have attepmted to do this myself (as is shown in the second code block), but get the errors shown in the third code block. Can you tell me what I am doing wrong and how I would be able to make the change to main() in order for users to be able to input their own values for the numerator and denominator? The original main() code is:
TestClassFract.cc: In function `int main()':
TestClassFract.cc:12: no match for `istream & << ostream & (&)(ostream &)'
TestClassFract.cc:14: no match for `istream & << ostream & (&)(ostream &)'
TestClassFract.cc:16: no match for `istream & << ostream & (&)(ostream &)'
TestClassFract.cc:18: no match for `istream & << ostream & (&)(ostream &)'