I'm not sure what the problems would be, this is for a class and I need to write the code this way. I am always into easier and better, but I don't think school operates that way.
Here is the derived class:
This is what I've got. I don't think I need anything else.
class field : public string
// inherited from string class
// MOD MEMBER FUNCTIONS
ifstream & operator >> (istream & ifs, field & inputField);
ofstream & operator << (ofstream & ofs, field & outputField);
ifstream & operator >> (ifstream & ifs, field & inputField)
getline(ifs, temp, '|');
inputField = string(temp);
ofstream & operator << (ofstream & ofs, field & outputField)
ofs << outputField << '|';