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;
ungetc(tmpCh, stdin);
scanf("%s", names[i]);
scanf("%[^\n]", names[i]);
realLines++;
tmpCh = getc(stdin);
if(tmpCh == EOF) break;