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