/****************************************************************
example 7 -- length.h
feet/inches manager
****************************************************************/
#include <iostream>
using namespace std;
//class definition
class length {
private:
int inches;
static bool GrowByFeet;
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
grow(1.0);
}
void setGrowByFeet(bool TF = true) {
GrowByFeet = TF;
}
friend ostream& operator<<(ostream&, const length&);
};