Aktualizovat „du6/program.c“

This commit is contained in:
Artem Horbunov 2020-04-08 14:55:19 +00:00
parent b1b7feb049
commit 6e2ab46cfd

View File

@ -24,7 +24,7 @@ int main(){
} }
else if(tmpCh == '\n') break; else if(tmpCh == '\n') break;
ungetc(tmpCh, stdin); ungetc(tmpCh, stdin);
scanf("%s", names[i]); scanf("%[^\n]", names[i]);
realLines++; realLines++;
tmpCh = getc(stdin); tmpCh = getc(stdin);
if(tmpCh == EOF) break; if(tmpCh == EOF) break;