-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
33 lines (30 loc) · 700 Bytes
/
Copy pathmain.c
File metadata and controls
33 lines (30 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "ab.h"
int main(int argc, char *argv[]){
ArTAB *t;
//TAB * arvore = Inicializa();
/*int num = 0, from, to;
while(num != -1){
printf("Digite um numero para adicionar. 0 para imprimir. -9 para remover e -1 para sair\n");
scanf("%i", &num);
if(num == -9){
scanf("%d", &from);
arvore = retira(arvore, from, t);
Imprime(arvore,0);
}
else if(num == -1){
printf("\n");
Imprime(arvore,0);
Libera(arvore);
return 0;
}
else if(!num){
printf("\n");
Imprime(arvore,0);
}
else arvore = Insere(arvore, num, t);
printf("\n\n");
*/
Imprime_arq("0.txt");
t = Busca_arq("0.txt",3);
system("pause");
}