Hi newbie here having a problem at R/T with the following function. It is giving me a application error when the program is run, but compiles just fine.
Function call:
Code:student::readfile(filename, ctr, ARRAY);
Function:
Thanks in advance for any ad all help.Code:void student::readfile(string file, int &ctr, student* arr[]) { ifstream in(file.c_str(), ios::binary); if(!in) { throw studentX("No file"); } for(int i=0; i<ctr; i++) { in.read((char*)arr[i], sizeof(student)); } }
:-) James