B
Bill Cunningham
I have this code.
struct node
{ char *name;
double price;
int count;
int vol;
struct node *rchild;
struct node *lchild;
};
The idea is to create a tree that contains information about stock names and
prices as well as volume. The count int type is to give the node a number. I
understand there is alot more that goes with a tree. Like adding and
deleting nodes, but this is how far I've got. I will need memory allocation
also. I know the sematics of what I am to do but like the skill on how to go
about it. Does anyone have any ideas?
Bill
struct node
{ char *name;
double price;
int count;
int vol;
struct node *rchild;
struct node *lchild;
};
The idea is to create a tree that contains information about stock names and
prices as well as volume. The count int type is to give the node a number. I
understand there is alot more that goes with a tree. Like adding and
deleting nodes, but this is how far I've got. I will need memory allocation
also. I know the sematics of what I am to do but like the skill on how to go
about it. Does anyone have any ideas?
Bill