Fraction Library
A C++ Fraction library.
|
This file implementes the interface of the MFraction class. More...
#include "MFraction.h"
#include <string>
Go to the source code of this file.
Functions | |
bool | operator== (const MFraction &left, const MFraction &right) |
bool | operator!= (const MFraction &left, const MFraction &right) |
bool | operator< (const MFraction &left, const MFraction &right) |
bool | operator<= (const MFraction &left, const MFraction &right) |
bool | operator> (const MFraction &left, const MFraction &right) |
bool | operator>= (const MFraction &left, const MFraction &right) |
MFraction | operator+ (const MFraction &left, const MFraction &right) |
MFraction | operator- (const MFraction &left, const MFraction &right) |
MFraction | operator* (const MFraction &left, const MFraction &right) |
MFraction | operator/ (const MFraction &left, const MFraction &right) |
ostream & | operator<< (ostream &out, const MFraction &fraction) |
istream & | operator>> (istream &in, MFraction &fraction) |
This file implementes the interface of the MFraction class.
Private and protected members of the class are also implemented in this file.
Definition in file MFraction.cpp.
left | MFraction object to the left of the operator. |
right | MFraction object to the right of the operator. |
Definition at line 278 of file MFraction.cpp.
left | MFraction on the left of the operator |
right | MFraction on the right of the operator |
Definition at line 322 of file MFraction.cpp.
left | MFraction on the left of the operator |
right | MFraction on the right of the operator |
Definition at line 310 of file MFraction.cpp.
left | MFraction on the left of the operator |
right | MFraction on the right of the operator |
Definition at line 316 of file MFraction.cpp.
left | MFraction on the left of the operator |
right | MFraction on the right of the operator |
Definition at line 328 of file MFraction.cpp.
left | MFraction object to the left of the operator. |
right | MFraction object to the right of the operator. |
Definition at line 284 of file MFraction.cpp.
ostream& operator<< | ( | ostream & | out, |
const MFraction & | fraction | ||
) |
out | output stream (operation assumes stream is already setup (ie. connected to file, screen etc.) |
fraction | MFraction object to output. |
Definition at line 336 of file MFraction.cpp.
left | MFraction object to the left of the operator. |
right | MFraction object to the right of the operator. |
Definition at line 292 of file MFraction.cpp.
left | MFraction object to the left of the operator. |
right | MFraction object to the right of the operator. |
Definition at line 272 of file MFraction.cpp.
left | MFraction object to the left of the operator. |
right | MFraction object to the right of the operator. |
Definition at line 298 of file MFraction.cpp.
left | MFraction object to the left of the operator. |
right | MFraction object to the right of the operator. |
Definition at line 304 of file MFraction.cpp.
istream& operator>> | ( | istream & | in, |
MFraction & | fraction | ||
) |
in | input stream (operation assumes stream is already setup (ie. connected to file, screen etc.) |
fraction | The input from stream is assigned to this fraction object. |
Definition at line 358 of file MFraction.cpp.