Hi
I have a structure as follows
Here halfTurnTimeList is a linked list whose first element is pointer to arptList which is another linked list. I have allocated memory of halfTurnTimeList and pute it into variable name called node. I have created the linked list of arpt.But when i am trying to assign address of first note into the first element of halfTurnTimeList by following assignmentCode:struct arptCd { char code[ARPCDLEN]; }; struct arptList { struct arptCd arpt; struct arptCd *next; }; struct halfTurnTime { struct arptList *arpt; float pctMgtArr; float pctMgtDep; float minmDep; float minmArr; }; struct halfTurnTimeList{ struct halfTurnTime halfTurnTimeData; struct halfTurnTime *next; };
node->arpt=firstArptNode
Compiler showing error "struct halfTurnTimeListâ has no member named arpt".
I made following task
struct halfTurnTimeList *node=NULL
node=calloca as halfTurnTimeList
created linked list of Arpt node
node->arpt=firstArptNode. firstArptNode is the address of the first node.
How can i access a pointer member of structure pointer.
Thanks in advance
Sas



LinkBack URL
About LinkBacks


