telegrafista
This commit is contained in:
parent
c6eaec1cc9
commit
34b4ad37fe
18
a5/program.c
18
a5/program.c
@ -123,12 +123,16 @@ int main (){
|
|||||||
add(root, "----.", '9');
|
add(root, "----.", '9');
|
||||||
add(root, "-----", '0');
|
add(root, "-----", '0');
|
||||||
|
|
||||||
char line[MAX];
|
while(1){
|
||||||
fgets(line, MAX, stdin);
|
char line[MAX];
|
||||||
line[strlen(line)-1] = '\0';
|
fgets(line, MAX, stdin);
|
||||||
|
line[strlen(line)-1] = '\0';
|
||||||
search(root, line);
|
if(line[0] == '\n'){
|
||||||
printf("\n");
|
break;
|
||||||
printf("\n");
|
}
|
||||||
|
search(root, line);
|
||||||
|
printf("\n");
|
||||||
|
printf("\n");
|
||||||
|
}
|
||||||
destroy(root);
|
destroy(root);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user