case study: random access file
to illustrate C++ generic classes and inheritance
-
show a simple menu
-
create class Database
-
make Database generic
-
overload operator>> for Personal
-
add 1st field "SSN" for Personal
-
overload operator<< for Personal
-
print Personal
-
input database file name
-
open database file
-
write to database file
-
print database file
-
add 2nd field "name" for Personal
-
add 3rd field "city" for Personal
-
add 4th field "year" for Personal
-
add 5th field "salary" for Personal
-
find record by SSN
-
modify a record
-
subclass Student
ch 1.10 CASE STUDY: RANDOM ACCESS FILE p35 of