C/C++
percpp.asc
Associated article: Persistent Objects in C++
Tags: C/C++
_PERSISTENT OBJECTS IN C++_
by Al Stevens
Example 1: A C persistent object.
struct Employee {
/* ... */
} Employee empl;
fread(&empl, sizeof(struct Employee), 1, dp);
Example 2: A persistent object class.
class Employee : public Persistent {
EmployeeNo emplno;
String *name;
Department& dept;
int ...


