RCMS.cpp
/**************************ADDING A RECORD**************************/
/*
Calls the enter() function in the student class definition to input the personal
information for a student.
Once this is done, that student is then appended to the 'Record.dat' file
*/
ADDING A RECORD
Calls the enter() function in the student class definition to input the personal
information for a student.
Once this is done, that student is then appended to the 'Record.dat' file
ADDING A RECORD Calls the enter () function in the student class definition to input the personal information for a student . Once this is done that student is then appended to the ' Record . dat ' file
void add() {
    STUDENT s;
    ofstream f("Record.dat", ios::binary | ios::app);
    s.enter();
    f.write((char *) &s, sizeof(s));
    f.close();
}
void add ( ) { STUDENT s ; ofstream f ( " " , ios :: binary | ios :: app ) ; s . enter ( ) ; f . write ( ( char * ) & s , sizeof ( s ) ) ; f . close ( ) ; }
ADDING A RECORD
Calls the enter() function in the student class definition to input the personal
information for a student.
ADDING A RECORD Calls the enter () function in the student class definition to input the personal information for a student .