// A simple database // database.h // by // K. J. Rock // November 11, 2018 // for // Bacona Design LLC #include #include #include #include char *man[100]; char *woman[100]; // pointer to 100 men's & 100 women's names char str[80]; // allocated from stack and uses 80 chars int dummy; // throw away excess digit in each record of the file char *s; // allocated from heap and can be quite large struct data // create an employee record { int id; int age; // min 20 max 70 float salary; // min $30,000 max $95,000 int seniority; // years of service 0 - 45 // need dates // names, telephone numbers, text information }; struct node // create a node structure for the linked list { struct data *data; // these two data's are not the same. struct node *next, *prev; // for doubly linked list // struct node *left, *right; // for tree in the future }; struct node *head, *tail, *ep; // head, tail, & employee pointers