Aktualizovat du5/program.c
This commit is contained in:
parent
ac891ec5c0
commit
67160e3591
@ -15,6 +15,7 @@ int main()
|
|||||||
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 readingCurrentlyLine = 1;
|
||||||
|
int testnumber = 1;
|
||||||
|
|
||||||
option1[0] = '\0';
|
option1[0] = '\0';
|
||||||
option2[0] = '\0';
|
option2[0] = '\0';
|
||||||
@ -44,7 +45,7 @@ int main()
|
|||||||
else if (readingCurrentlyLine == 4)
|
else if (readingCurrentlyLine == 4)
|
||||||
{
|
{
|
||||||
sscanf(line, " %127[^\n]", question);
|
sscanf(line, " %127[^\n]", question);
|
||||||
char testquestion[] = "Test1";
|
testnumber = 10;
|
||||||
// strcat(question, "?");
|
// strcat(question, "?");
|
||||||
}
|
}
|
||||||
readingCurrentlyLine += 1;
|
readingCurrentlyLine += 1;
|
||||||
@ -55,7 +56,7 @@ int main()
|
|||||||
printf("Expert z bufetu to vie.\n");
|
printf("Expert z bufetu to vie.\n");
|
||||||
printf("Pozna 2 druhov ovocia a zeleniny.\n");
|
printf("Pozna 2 druhov ovocia a zeleniny.\n");
|
||||||
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
printf("Odpovedajte 'a' pre prvu moznost alebo 'n' pre druhu moznost.\n");
|
||||||
printf("%s", testquestion);
|
printf("%d", testquestion);
|
||||||
if (answer == 'a')
|
if (answer == 'a')
|
||||||
{
|
{
|
||||||
printf("%s\n", option1);
|
printf("%s\n", option1);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user