//tails.h #ifndef TAILS_H #define TAILS_H #include //endl #include //rand #include //ofstream, ostream using namespace std; class Tails { public: Tails(); ~Tails(); Tails(const Tails & original);//copy constructor const Tails & operator=(const Tails & source); //assignment static ofstream & getOut(){return tailsout;} static void summary(ostream& out); private: int n; int ID; //each tail will have a different ID static int totalcount; //incremented each time a tail is made static int defaultcount; //incremented each time the default //constructor makes a tail static int copycount; //incremented each time the copy //constructor makes a tail static int currentcount; //the current number of tails in existence static ofstream tailsout; //print messages to this file friend ostream & operator<<(ostream & fout,const Tails & t); }; //end Tails #endif