<
} :: CWork ()
{= 1990; = 2000; (Work, "Director"); (WorkPlace, "Lotus");
strcpy (Reason, "Po sobstvennomu jelaniyu");
} :: CWork (CWork & As)
{= As. WorkBegin; = As. WorkEnd; (Work, As. Work); (WorkPlace, As. WorkPlace); (Reason, As. Reason);
} :: CWork (int AWorkBegin, int AWorkEnd, char * AWork, char * AWorkPlace, char * AReason)
{= AWorkBegin; = AWorkEnd; (Work, AWork); (WorkPlace, AWorkPlace); (Reason, AReason);
}
Файл Worker. cpp
# include "StdAfx. h "
# include
# include "Worker. h "
# include CWorker :: getPersonID (void) {PersonID;
} CWorker :: setPersonID (int APersonID) {= APersonID;
} * CWorker :: getFamily (void) {Family;
} * CWorker :: getBirth (void) {Birth;
} CWorker :: setBirth (char * ABirth)
{(Birth, ABirth);
} CWorker :: Read ()
{<<"Vvedite PersonID" <> PersonID; <<"Vvedite Family" <> Family ; <<"Vvedite Birth" <> Birth;
} CWorker :: Write ()
{<<"PersonID -" <
} CWorker :: ReadF (std :: ifstream & f)
{>> PersonID>> Family>> Birth;
} CWorker :: WriteF (std :: ofstream & f)
{<
} :: CWorker ()
{= 10; = new char [14]; (Family, "Ivanov"); (Birth, "01.01.10");
} :: CWorker (CWorker & As)
{= As. PersonID; = new char [strlen (As. Family) +1]; (Birth, As. Birth);
} :: CWorker (int APersonID, char * AFamily, char * ABirth)
{= APersonID; = new char [strlen (AFamily) +1]; (Family, AFamily); (Birth, ABirth);
} :: ~ CWorker ()
{[] Family;
} CWorker :: setFamily (char * AFamily)
{(Family! = 0) [] Family; = new char [strlen (AFamily) +1]; (Family, AFamily);
}
Файл Docent. cpp
# include "stdafx. h "
# include
# include "Docent. h "
# include "Worker. h "