Welcome! Log In Create A New Profile

Advanced

Ass 3 Qu 2

Posted by VeerVortex 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Ass 3 Qu 2
June 13, 2007 08:54PM
Im a bit confused by the wrding of this question.


Is it saying that we may only take ONE ARGUMENT for the output() and input()
functions, since i want to utlize more so that i may be able to display not only my initial fraction values, but also the sum, differece ect to file or screen.

In other word, am i allowed to do this

void Output(ostream &outs, Rational fraction2, Rational Sum,
Rational Diff, Rational Product...ect)
{
outs << "Fraction 1 : " << numerator << "/" << denominator << endl;
outs << "Fraction 2 : " << fraction2.numerator << "/" <<
fraction2.denominator << endl;
outs << "Sum : " << Sum.numerator << "/" << Sum.denominator << endl;
ect....
}

tx

Veer
Sorry, only registered users may post in this forum.

Click here to login