telegrafista

This commit is contained in:
Maryna Kravtsova 2020-12-03 15:03:22 +01:00
parent c6eaec1cc9
commit 34b4ad37fe

View File

@ -123,12 +123,16 @@ int main (){
add(root, "----.", '9'); add(root, "----.", '9');
add(root, "-----", '0'); add(root, "-----", '0');
while(1){
char line[MAX]; char line[MAX];
fgets(line, MAX, stdin); fgets(line, MAX, stdin);
line[strlen(line)-1] = '\0'; line[strlen(line)-1] = '\0';
if(line[0] == '\n'){
break;
}
search(root, line); search(root, line);
printf("\n"); printf("\n");
printf("\n"); printf("\n");
}
destroy(root); destroy(root);
} }