Question
#include Fraction.hpp Fraction operator+(const Fraction &a, const Fraction &b ){ return Fraction(1,2); } Fraction operator-(const Fraction &a, const Fraction &b ){ return Fraction(1,2); } Fraction
#include "Fraction.hpp"
Fraction operator+(const Fraction &a, const Fraction &b ){ return Fraction(1,2); }
Fraction operator-(const Fraction &a, const Fraction &b ){ return Fraction(1,2); }
Fraction operator*(const Fraction &a, const Fraction &b ){ return Fraction(1,2); }
Fraction operator/(const Fraction &a, const Fraction &b ){ return Fraction(1,2); }
bool operator<(const Fraction &a, const Fraction &b){ return 0; }
bool operator>(const Fraction &a, const Fraction &b){ return 0; }
bool operator<=(const Fraction &a, const Fraction &b){ return 0; }
bool operator>=(const Fraction &a, const Fraction &b){ return 0; }
int operator==(const Fraction &a,const Fraction &b){ return (a.num == b.num) && (a.denom == b.denom); }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started