/**************************************************************** example 7 -- driver.cpp feet/inches manager ****************************************************************/ #include <iostream> using namespace std; #include "length.h" void main() { length joey(4,5); cout << "Joey's height was: " << joey << endl; cout << "Then Joey grew 6 inches." << endl; joey.grow(0.5); cout << "Joey's new height was: " << joey << endl; cout << "Then Joey grew an entire foot!" << endl; joey++; cout << "Joey's new height was: " << joey << endl; cout << "Recently, Joey grew two inches!" << endl; joey.setGrowByFeet(false); joey++; joey++; cout << "Joey's new height is: " << joey << endl; }