Expand|Select|Wrap|Line Numbers
- class llist
- {
- private:
- record *start;
- char filename[16];
- int readfile();
- int writefile();
- record * reverse(record *);
- void cleanup();
- public:
- llist( );
- llist(char []);
- ~llist( );
- int addRecord(char[], char[], int, char[]);
- int printRecord(char [ ]);
- int modifyRecord(char[], char[], char[]);
- void printAll();
- int deleteRecord(char []);
- void reverse();
- };
I thought about calling the readfile() and writefile() functions in the constructor and destructor. But then shouldn't they only be used to initialize member variables and deallocate them?
Regards,
Jthep