tn, std :: vector w)
{:: ofstream t (tn); <
{[i] -> WriteF (t);
}. close ();
} WriteAllCWork (std :: vector w)
{<<"kolich Workov =" <
{[i] -> Write ();
}
} ReadFAllCDocent (char * tn, std :: vector & v2)
{:: ifstream t (tn); N;>> N; * m; (int i = 0; i
{= new CDocent ();> ReadF (t);. push_back (m);
}. close ();
} WriteFAllCDocent (char * tn, std :: vector v2)
{:: ofstream t (tn); <
{[i] -> WriteF (t);
}. close ();
} WriteAllCDocent (std :: vector v2)
{<<"kolich specialnostei =" <
{[i] -> Write ();
}
} :: vector v; :: vector w; :: vector v2; main (void)
{("Worker. txt", v); ("Work. txt", w); ("Docent. txt", v2); tn [600]; kod; { < vector "< File "< Display "< vector "< File "< Display "< vector "< File "< Display "<> kod; (kod)
{1: <> tn; (tn, v);; 2: <> tn; (tn, v);; 3: (v);; 4: * m; = new CWorker;> Read ();. push_back (m);; 5: <> tn; (tn, w);; 6: << ; endl; <<"Input File name:" <> tn; (tn, w);; 7: (w);; 8: * a; = new CWork; > Read ();. push_back (a);; 9: <> tn; (tn, v2);; 10: << ; endl; <<"Input File name:" <> tn; (tn, v2);; 11: (v2);; 12: * o; = new CDocent; > Read ();. push_back (o);;
}
} while (kod> 0); <<"GOOD BYE";
}