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