typedef char info;
typedef struct node Tree;
struct node {
info dado;
Tree *firstSon;
Tree *nextBrother;
};
void InsertsRoot();
How can I enter in the root if I have firstSon and nextBrother ?
typedef char info;
typedef struct node Tree;
struct node {
info dado;
Tree *firstSon;
Tree *nextBrother;
};
void InsertsRoot();
|
|
|
Ancient Dragon said:
void InsertsRoot()
{
Tree *root;
root = (Tree*) malloc(sizeof(Tree));
root->firstSon = NULL;
root->nextBrother = NULL;
}
0 members, 1 guests, 0 anonymous users