Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members
CFraction Class Reference
#include <fraction.h>
Public Member Functions | |
CFraction (int num=0, int den=1) | |
CFraction (double v) | |
CFraction (CString &f) | |
~CFraction () | |
bool | isFraction () const |
int | numerator () const |
int | denominator () const |
double | value () const |
CFraction | lowestTerm () const |
CFraction | operator+ (const CFraction &rhs) |
CFraction | operator- (const CFraction &rhs) |
CFraction | operator * (const CFraction &rhs) |
CFraction | operator/ (const CFraction &rhs) |
bool | operator== (const CFraction &rhs) const |
bool | operator!= (const CFraction &rhs) |
bool | operator> (const CFraction &rhs) |
bool | operator< (const CFraction &rhs) |
ostream & | print (ostream &out) |
Private Attributes | |
bool | fraction |
int | num |
int | den |
double | val |
Friends | |
ostream & | operator<< (ostream &out, CFraction &f) |
Constructor & Destructor Documentation
|
|
|
|
|
|
|
|
Member Function Documentation
|
|
|
|
|
Here is the call graph for this function: |
|
|
|
Here is the call graph for this function: |
|
|
|
Here is the call graph for this function: |
|
Here is the call graph for this function: |
|
Here is the call graph for this function: |
|
|
|
Here is the call graph for this function: |
|
Here is the call graph for this function: |
|
Here is the call graph for this function: |
|
|
Friends And Related Function Documentation
|
|
Member Data Documentation
|
|
|
|
|
|
|
|
The documentation for this class was generated from the following file: