>
# include CDocent :: getGodZ (void)
{GodZ;
} CDocent :: setGodZ (int AGodZ)
{= AGodZ;
} * CDocent :: getUchSpec (void) {UchSpec;
} CDocent :: setUchSpec (char * AUchSpec) {(UchSpec, AUchSpec);
} :: CDocent (): CWorker ()
{= 1997; (UchSpec, "Docent");
} :: CDocent (int APersonID, char * AFamily, char * ABirth, int AGodZ, char * AUchSpec): CWorker (APersonID, AFamily, ABirth)
{= AGodZ; (UchSpec, AUchSpec);
} :: CDocent (CDocent & As)
{= As. GodZ; (UchSpec, As. UchSpec);
} CDocent :: Read (void)
{<<"vvedite informazhiy o GodZ and UchSpec" <> GodZ; <<"vvedite UchSpec" <> UchSpec;
} CDocent :: ReadF (std :: ifstream & t)
{:: ReadF (t);>> GodZ>> UchSpec;
} CDocent :: Write (void)
{<
} CDocent :: WriteF (std :: ofstream & t)
{:: WriteF (t); <
}
Файл main. cpp
# include "stdafx. h "
# include
# include
# include
# include "Work. h "
# include "Worker. h "
# include "Docent. h "
# include ReadFAllCWorker (char * tn, std :: vector & v)
{:: ifstream t (tn); N;>> N; * m; (int i = 0; i
{= new CWorker ();> ReadF (t);. push_back (m);
}. close ();
} WriteFAllCWorker (char * tn, std :: vector v)
{:: ofstream t (tn); <
{[i] -> WriteF (t);
}. close ();
} WriteAllCWorker (std :: vector v)
{<<"kolich Worker =" <
{[i] -> Write ();
}
} ReadFAllCWork (char * tn, std :: vector & w)
{:: ifstream t (tn); N;>> N; * m; (int i = 0; i
{= new CWork ();> ReadF (t);. push_back (m);
}. close ();
} WriteFAllCWork (char * ...