| Struktura listy jednokierunkowej |
//definicja typu opisującego dane typedef struct { char *Data1,*Data2; } entrytype; //definicja typu opisującego element listy typedef struct _node { entrytype entry; struct _node* next; } node; //definicja typu opisującego listę typedef struct { node *head;node *back;} list;
gdzie:
Data1, Data2 : Część zawierająca dane next : Wskaźnik na kolejny element listy head : Pierwszy element listy back : Ostatni element listy
powrót do listy
Powrót
|