.

Friday, January 31, 2014

FracTable.cpp

FracTable.cpp //FracTable #include #include #include <conio.h> // require for getch() #include // requisite for setw() using namespace std; class compute //fraction class { wing: int num,den; public: fraction(): num(0),den(0){} fraction(int n,int d):num(n),den(d) {} obviate display() {cout<<num<<"/";cout.setf(ios::left);cout<<setw(4)<<den;} fraction mult(fraction&, fraction&); unfilled dispheader() {cout <<num <<"/";cout.setf(ios::left);cout<<setw(4)<<den;} void lowterms(); }; //----------------------Source copy from textbook---------------------------- void fraction::lowterms() // Change ourself to lowest terms { long tnum, tden, temp, gcd; tnum = labs(num ); // bring forth non-negative copies tden = labs(den); // (...If you want to get a full essay, order it on our website: OrderCustomPaper.com

If you want to get a full essay, visit our page: write my paper

No comments:

Post a Comment