test
This commit is contained in:
parent
50ab0b2ac6
commit
de36b5531b
@ -92,10 +92,10 @@ void skontrolujZatvorky(const char *kod) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!jePrazdny(&z)) {
|
if (!jePrazdny(&z)) {
|
||||||
printf("Missing closing brackets:");
|
printf("Missing closing brackets: ");
|
||||||
while (!jePrazdny(&z)) {
|
while (!jePrazdny(&z)) {
|
||||||
char nezodpovedajuca = vyber(&z);
|
char nezodpovedajuca = vyber(&z);
|
||||||
printf("%c ",
|
printf("%c",
|
||||||
(nezodpovedajuca == '{') ? '}' :
|
(nezodpovedajuca == '{') ? '}' :
|
||||||
(nezodpovedajuca == '[') ? ']' :
|
(nezodpovedajuca == '[') ? ']' :
|
||||||
(nezodpovedajuca == '<') ? '>' : ')');
|
(nezodpovedajuca == '<') ? '>' : ')');
|
||||||
|
Loading…
Reference in New Issue
Block a user