3034ccom/lab01/frac.cpp
Fraction Fraction::div(const Fraction& F) const {

	Fraction localFrac;
	Fraction recipFrac;

	recipFrac.setNum(F.getDenom());
	recipFrac.setDenom(F.getNum());

	localFrac = mul(recipFrac);

	return localFrac;

}
// Function div
//	Without modifying the calling Fraction object, 
//	divides two Fractions and returns the resulting
//	Fraction object. Division is done by inverse
// 	multiplication.
Function div
Without modifying the calling Fraction object,
divides two Fractions and returns the resulting
Fraction object. Division is done by inverse
multiplication.
Function div Without modifying the calling Fraction object divides two Fractions and returns the resulting Fraction object . Division is done by inverse multiplication .
Fraction Fraction::div(const Fraction& F) const {
	Fraction localFrac;
	Fraction recipFrac;
	recipFrac.setNum(F.getDenom());
	recipFrac.setDenom(F.getNum());
	localFrac = mul(recipFrac);
	return localFrac;
}
Fraction Fraction :: div ( const Fraction & F ) const { Fraction localFrac ; Fraction recipFrac ; recipFrac . setNum ( F . getDenom ( ) ) ; recipFrac . setDenom ( F . getNum ( ) ) ; localFrac = mul ( recipFrac ) ; return localFrac ; }
Function div
Without modifying the calling Fraction object,
divides two Fractions and returns the resulting
Fraction object.
Function div Without modifying the calling Fraction object divides two Fractions and returns the resulting Fraction object .