i hace a class in c++ bcw
class Student {
public:
private:
unsigned int sIdNum;
char sSurname[20];
char sFirstname[20];
char mathid[10];
};//Student
i need a function that fills a Student type dynamic array from a bin file called binfile1.dta the array starts with size[30]. And then do the same for another file binfile2.dta to fill a dynamic array student type char mathid[10] the array starts with size[5].when an array wants more memory it must renew it self and ask more space.
can anybody help me ?
the binfile1.dta has data for sIdNum,sSurname,sFirstname
the binfile2.dta has data for mathid (math id is like XX000 XX001 etc in lines )