are there any problems for these?
void empArray::read () {
return data_io::read (emplist, &inx);
/* fstream data_file;
int count = 0;
int i = 0;
char type;
Temp *t;
PTime *p;
nonExempt *n;
Exempt *x;
Management *m;
data_file.open ("Employee.dat", ios::in | ios::binary);
inx= 0;
while (!data_file.eof()) {
data_file.read (&type, 1);
switch (type) {
case 'M':
m = new Management;
data_file.read ((char*) m, sizeof (Management));
emplist[inx] = (Employee*) m;
(inx) ++;
count ++;
break;
default:
break;
}
}
data_file.close();*/
}
Thx.
J