You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
464 B

#ifndef TREE_H
#define TREE_H
#include "dameschinoises.h"
typedef int Data;
struct Tree
Data data;
struct Tree* parent;
struct Tree* child[6];
typedef struct Tree Tree;
Tree* newRoot(Data data);
Tree* newNode(Tree* parent, int pos, Data data);
void deleteTree(Tree* root);
int countChilds(Tree* node);
int getParents(Tree* node, int** parents); // Ne pas oublier free(*parents)