//This file is field.h. #ifndef FIELDH #define FIELDH #include #include using namespace std; class field { string s; public: operator string() const {return s;} friend ostream& operator<<(ostream& os, const field& f) {return os << f.s;} friend istream& operator>>(istream& is, field& f); }; #endif