// A simple, safe and efficient 8 character Buffer #ifndef BUFFY_H #define BUFFY_H #include using namespace std; class Buffy { private: char buffer[8]; int len;//number of characters placed in buffer public: Buffy();//default constructor Buffy(const Buffy & b); // copy constructor friend ostream& operator <<(ostream& out, Buffy & b); //output the len characters in the buffer friend istream& operator >>(istream& in, Buffy & b); //read line and store no more than the first 8 characters bool operator==(const Buffy & b)const;// test for equality virtual ~Buffy(){} //Just in Case }; // Buffy #endif