sharan wrote:
>
> Hello Friends I have a problem in Data Structure (In C) i want to
> implement a General tree having three child nodes of each parent
> node ...please send me any simple Example( code) by which i can
> understand General Tree codes.....node be int value if possible
> than help me for a name(string)
struct node {
struct node *left, *middle, *right; /* children */
char *data; /* or whatever type you need */
}
Go from there.
--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>
--
Posted via a free Usenet account from
http://www.teranews.com