Skip to content
Snippets Groups Projects
Verified Commit c931f758 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

cleaned some warnings. a lot remain though

parent 81544cf0
No related branches found
No related tags found
No related merge requests found
......@@ -107,6 +107,8 @@ bool arbre_delete(arbre *tree, int cle) {
nd->key = val;
return true;
}
return false;
}
void arbre_print(arbre tree, int N) {
......
......@@ -130,6 +130,7 @@ bool arbre_delete_bis(arbre *tree, cle c) {
return true;
}
}
return false;
}
void arbre_print(arbre tree, int N) {
......
......@@ -4,19 +4,20 @@
#include <stdlib.h>
void main() {
bool b;
int val;
bool b = false;
arbre tree = NULL;
arbre_print(tree, 1);
do {
printf("insert val = ");
int val;
scanf("%d", &val);
b = arbre_insert(&tree, val);
b = arbre_insert(tree, val);
arbre_print(tree, 1);
} while (b);
node *nd;
do {
printf("delete val = ");
int val;
scanf("%d", &val);
b = arbre_delete(&tree, val);
arbre_print(tree, 1);
......
......@@ -86,6 +86,7 @@ bool arbre_delete(arbre *tree, int cle) {
return true;
}
}
return false;
}
void arbre_print(arbre tree, int N) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment