*slaps forehead* Yes, that would cause the problem:
Code:
while (inf.read((char*)this, sizeof(student)))
   {
        inf.read(( char* )this,sizeof( student ) );
Easy mistake to make!