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