//This file is field.C. #include "field.h" istream& operator>>(istream& istr, field& f) { char c; //uninitialized variable if (istr.get(c)) { //Let f.s remain unchanged if input error. f.s.erase(); //Let f.s be the empty string. while (c != ':' && c != '\n') { f.s += c; if (!istr.get(c)) { break; } } } return istr; }