home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
pcmag
/
vol7n14.arc
/
FIG10.TXT
< prev
next >
Wrap
Text File
|
1988-06-30
|
376b
|
21 lines
struct _tree
{
char *word;
int count;
struct _tree *left;
struct _tree *right;
};
void treeprint(struct _tree *node)
{
static int depth = 0;
if(node)
printf("\nLevel %d: %d occurrences of %s",
depth,node->count,node->word);
depth++;
treeprint(node->left);
treeprint(node->right);
depth--;
}