N
Nash
Hi,
I am new to c language and i have a problem to solve. Imagine a
parent child relationship let me take menu as an example
File Edit
New Cut
Window Copy
Message
Open
here File and Edit are Top Level Parents(root menu), New and Open are
children of File. Window and MEssage are children of NEw. Similarly
Cut and Copy are children of Edit.
I can have only 2 functions like Next and GetSubMenu. Initially i will
display File when i say next it should show me edit when i say next it
should show me file.
When i am in File when is say get submenu it should display new and
now next should give me open and next should take me to File since
Open is the last child of File. Similary when i am in New and say
GetSubMenu it should give me Window and Next should give me Message
and Next should give me New.
I dont know whether i need to use a bidirectional circular linked list
or array. i need some help from you.
Thanks.
I am new to c language and i have a problem to solve. Imagine a
parent child relationship let me take menu as an example
File Edit
New Cut
Window Copy
Message
Open
here File and Edit are Top Level Parents(root menu), New and Open are
children of File. Window and MEssage are children of NEw. Similarly
Cut and Copy are children of Edit.
I can have only 2 functions like Next and GetSubMenu. Initially i will
display File when i say next it should show me edit when i say next it
should show me file.
When i am in File when is say get submenu it should display new and
now next should give me open and next should take me to File since
Open is the last child of File. Similary when i am in New and say
GetSubMenu it should give me Window and Next should give me Message
and Next should give me New.
I dont know whether i need to use a bidirectional circular linked list
or array. i need some help from you.
Thanks.