Skip to content
Snippets Groups Projects
Commit 12c7cc7e authored by Nikolic's avatar Nikolic
Browse files

Ajout de la structure de donnés et des fonctions de base

parent c15bc327
No related branches found
No related tags found
No related merge requests found
#include "arbinaire_morse.h"
#include <stdlib.h>
#include <stdio.h>
tree init(){
node * new = NULL;
return new;
}
tree nextLeft(node * node){
return node->left;
}
tree nextRight(node * node){
return node->right;
}
void nood_print(node * data){
}
\ No newline at end of file
// Structure de donné pour les charactères
typedef char data_t;
// Structure de donné pour l'arbe
typedef struct node
{
data_t d;
struct node * left;
struct node * right;
} node;
typedef node * tree;
/*
* Function permettant d'initiliaser un arbre
*/
tree init();
/*
* Function permettant de récuperer l'élement à gauche de l'arbre
*/
tree nextLeft(tree tree);
/*
* Function permettant de récuperer l'élement à droite de l'arbre
*/
tree nextRight(node * node);
/*
* Function permettant d'afficher un l'arbre
*/
void nood_print(node * data);
\ No newline at end of file
#include "arbinaire_morse.h"
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
int main(int argc, char const *argv[])
{
return EXIT_SUCCESS;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment