Aktualizovat du5/program.c
This commit is contained in:
parent
746dee7456
commit
ce24dc5c40
@ -11,14 +11,16 @@ int main()
|
||||
char option1[SIZE];
|
||||
char option2[SIZE];
|
||||
char question[SIZE];
|
||||
bool isFirstOptionLoaded = false;
|
||||
char question2[SIZE];
|
||||
char answer = '0'; //'0' = ako keby 'NULL'/ absencia hodnoty
|
||||
int readLineNumber = 1;
|
||||
bool err = 0;
|
||||
bool isFirstOptionLoaded = false;
|
||||
bool err = false;
|
||||
|
||||
option1[0] = '\0';
|
||||
option2[0] = '\0';
|
||||
question[0] = '\0';
|
||||
question2[0] = '\0';
|
||||
line[0] = '\0';
|
||||
|
||||
while (fgets(line, SIZE, stdin) != NULL)
|
||||
@ -46,6 +48,10 @@ int main()
|
||||
sscanf(line, "%127[^\n]]", question);
|
||||
// strcat(question, "?");
|
||||
}
|
||||
else
|
||||
{
|
||||
sscanf(line, "%127[^\n]]", question2);
|
||||
}
|
||||
readLineNumber += 1;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user