topical media & game development

talk show tell print

professional-program-10-MilesEstimator-TestMilesEstimator.c

? / professional-program-10-MilesEstimator-TestMilesEstimator.c


  include <EfficientCarMilesEstimator.h>
  include <iostream>
  
  using namespace std;
  
  int main(int argc, char** argv)
  {
    MilesEstimator myMilesEstimator;
    
    myMilesEstimator.setGallonsLeft(2);
    cout << "Normal estimator can go " << myMilesEstimator.getMilesLeft() << " more miles." << endl;
    
    EfficientCarMilesEstimator myEstimator;
    
    myEstimator.setGallonsLeft(2);
    cout << "Efficient estimator can go " << myEstimator.getMilesLeft() << " more miles." << endl;
  }
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.