The GNU C Programming Tutorial - Designing your data structure
Node:Designing your data structure,
Next:Initializing your data structure,
Previous:Setting up a data structure,
Up:Setting up a data structure
Designing your data structure
The steps you should take in designing a data structure follow a basic
pattern:
- Group together all the kinds of information that must be stored
and define a structure type with a member for each kind of information.
- Add structure pointers to the structure type to reflect
the way in which each bundle of information is connected to the others.
- Design the algorithms to handle the memory allocation,
node linking, and data storage.