/** * Write a description of class Distance here. * * @author Anne DeFrance * February 26, 2004 */ #ifndef DISTANCE #define DISTANCE #include using namespace std; class Distance { private: int feet; float inches; public: // constructor with default values and an intitalizer list list Distance(int ft=0, float in=0.0):feet(ft),inches(in){}; //mutator function to set distances void setDist(int, float); //simple I/O functions void inputDist(); void outputDist() const; // function to add two distance objects Distance addDist(Distance); // function to overload the plus operator Distance operator + (Distance); // function to overload the > operator bool operator > (Distance); friend ostream& operator << (ostream& s, Distance& d); }; #endif