test
This commit is contained in:
parent
1499a6d5d4
commit
f0059b6091
14
a1/program.c
14
a1/program.c
@ -92,11 +92,15 @@ void skontrolujZatvorky(const char *kod) {
|
||||
}
|
||||
|
||||
if (!jePrazdny(&z)) {
|
||||
char nezodpovedajuca = vyber(&z);
|
||||
printf("Missing closing brackets: %c\n",
|
||||
(nezodpovedajuca == '{') ? '}' :
|
||||
(nezodpovedajuca == '[') ? ']' :
|
||||
(nezodpovedajuca == '<') ? '>' : ')');
|
||||
printf("Missing closing brackets: ");
|
||||
while (!jePrazdny(&z)) {
|
||||
char nezodpovedajuca = vyber(&z);
|
||||
printf("%c ",
|
||||
(nezodpovedajuca == '{') ? '}' :
|
||||
(nezodpovedajuca == '[') ? ']' :
|
||||
(nezodpovedajuca == '<') ? '>' : ')');
|
||||
}
|
||||
printf("\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user