Aktualizovat du5/program.c
This commit is contained in:
parent
734cc14935
commit
ca7f34cbeb
@ -12,20 +12,19 @@ int main()
|
||||
while (1)
|
||||
{
|
||||
char* p = fgets(line, SIZE, stdin);
|
||||
if (p == NULL)
|
||||
if (line[0] == NULL)
|
||||
{
|
||||
break;
|
||||
}
|
||||
else if (p == '*')
|
||||
else if (line[0] == '*')
|
||||
{
|
||||
//precita a ulozi odpoved
|
||||
sscanf(answer, "%s [^\n]", &answer);
|
||||
}
|
||||
else if (p == 'n')
|
||||
else if (line[0] == 'n')
|
||||
{
|
||||
break;
|
||||
}
|
||||
printf("%s", p);
|
||||
}
|
||||
|
||||
printf("Expert_z_bufetu_to_vie.\n");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user