#ifndef STAT #define STAT using std::string; using namespace std; class Stat { public: Stat(); ~Stat(); void add(double); double get_mean(); // double get_std(); // double get_n(); double get_min(); double get_max(); friend ostream & operator <<(ostream &os, const Stat &obj); protected: long n; double x; double x2; double minX; double maxX; }; #endif