Aktualizovat du5/program.c
This commit is contained in:
parent
d83467c485
commit
2d341b1d7a
@ -14,6 +14,7 @@ int main()
|
||||
bool isFirstOptionLoaded = false;
|
||||
char answer = '0'; //'0' = ako keby 'NULL'/ absencia hodnoty
|
||||
bool err = 0;
|
||||
int readingCurrentlyLine = 1;
|
||||
|
||||
option1[0] = '\0';
|
||||
option2[0] = '\0';
|
||||
@ -40,11 +41,12 @@ int main()
|
||||
answer = line[0];
|
||||
break;
|
||||
}
|
||||
else
|
||||
else if (readingCurrentlyLine == 4)
|
||||
{
|
||||
sscanf(line, " %127[^?]", question);
|
||||
sscanf(line, " %127[^\n]", question);
|
||||
// strcat(question, "?");
|
||||
}
|
||||
readingCurrentlyLine += 1;
|
||||
}
|
||||
|
||||
if (answer == '0') { err = true; }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user