test
This commit is contained in:
parent
c17c94e274
commit
67eacf774d
@ -37,12 +37,13 @@ Uzol* nacitaj_strom() {
|
||||
void spusti_system(Uzol *uzol) {
|
||||
while (uzol != NULL) {
|
||||
if (uzol->ano == NULL && uzol->nie == NULL) {
|
||||
printf("* %s\nKoniec\n", uzol->text);
|
||||
printf("*%s\nKoniec\n", uzol->text);
|
||||
return;
|
||||
}
|
||||
printf("%s\n", uzol->text);
|
||||
|
||||
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
||||
printf("%s\n", uzol->text);
|
||||
|
||||
char odpoved;
|
||||
if (scanf(" %c", &odpoved) != 1 || (odpoved != 'a' && odpoved != 'n')) {
|
||||
printf("Chyba: Nesprávny vstup.\n");
|
||||
|
Loading…
Reference in New Issue
Block a user