Difference: Lab8 (16 vs. 17)

Revision 172017-11-07 - JimSkon

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Lab 8 - Operator Overloading

Line: 74 to 74
  // Constructors and Destructor Fraction(void); Fraction(int n, int d);
Deleted:
<
<
~Fraction(void);
  // Test functions string to_string();
Line: 132 to 131
  } }
Deleted:
<
<
Fraction::~Fraction(void) { }
  // Returns the greatest common divisor of two integers int Fraction::gcd(int a, int b)const{
Line: 183 to 179
  * DIVISION (/) OPERATOR * result = (num1 * den2) / (den1 * num2) *
Deleted:
<
<
* INSERTION (<<) operator * Output fraction in form n/d
  */

%ENDCODE%

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback