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