an align="justify"> вихідний текст програми;
завантажувальні модулі (скомпільована програма та файли з вхідними даними);
текстову і графічну документацію.
Додаток 2. Лістинг програми
клас Cwork
# include
# include
# include "Worker. h "CWork
{::: vector pr; WorkBegin; WorkEnd; Work [20]; WorkPlace [25]; Reason [40];: getWorkBegin (void); setWorkBegin (int AWorkBegin ); getWorkEnd (void); setWorkEnd (int AWorkEnd); * getWork (void); setWork (char * AWork); * getWorkPlace (void); setWorkPlace (char * APlace); * getReason (void); setReason (char * AReason ); AddWorkerIntoWork (CWorker * g); RemoveWorker (CWorker * g); CountWorkerInWork (); WriteV (); WriteFV (std :: ofstream & t); ReadFV (std :: ifstream & t); Read (); Write (); ReadF (std :: ifstream & t); WriteF (std :: ofstream & t); (); (CWork & As); (int AWorkBegin, int AWorkEnd, char * AWork, char * AWorkPlace , char * AReason);
};
клас Cworker
# ifndef _PEO__
# define _PEO__
# include
# include CWorker
{: PersonID; * Family; Birth [12];: getPersonID (void); setPersonID (int APersonID); * getFamily (void); setFamily (char * AFamily); * getBirth (void) ; setBirth (char * ABirth); Read (); Write (); ReadF (std :: ifstream & f); WriteF (std :: ofstream & f); (); (CWorker & As); (int APersonID, char * AFamily, char * ABirth);
~ CWorker ();
};
# endif
клас CDocent
# include
# include "Worker. h "CDocent: public CWorker
{: GodZ; UchSpec [15];: getGodZ (void); setGodZ (int AGodZ); * getUchSpec (void); setUchSpec (char * AUchSpec); Write (); Read (); WriteF (std :: ofstream & t); ReadF (std :: ifstream & t); (); (CDocent & As); (int APersonID, char * AFamily, char * ABirth, int AGodZ, char * AUchSpec );
};
Файл Work. cpp
# include "stdafx. h "
# include
# include "Work. h "
# include "Worker. h "
# include "Docent. h "
# include
# include std :: vector v; std :: vector w; std :: vector v2; CWork :: AddWorkerIntoWork (CWorker * g)
{. push_back (g);