/**************************************************************** example 5 -- length.h feet/inches manager ****************************************************************/ #include <iostream> using namespace std; //class definition class length { private: int feet; int inches; public: length(const int& f = 0, const int& i = 0); void show(ostream& out = cout) const { out << feet << '\'' << inches << '"'; } void grow(const float& = 1.0); void operator++(int){ //postfix increment feet += 1.0; } friend ostream& operator<<(ostream&, const length&); };