Изменить 'du6/program.c'

This commit is contained in:
Pavlo Tverdyi 2020-04-16 14:37:55 +00:00
parent 79e76f37fa
commit a541a20d95

View File

@ -35,6 +35,7 @@ char keep(struct LIS* list,int places){
int count=0; int count=0;
char names[100]; char names[100];
for(;fgets(names,100,stdin);){ for(;fgets(names,100,stdin);){
if(names[0]=='\n') continue;
if(sscanf(names,"%s %s",list[count].fname,list[count].name)==2){ if(sscanf(names,"%s %s",list[count].fname,list[count].name)==2){
count++; count++;
if(places>=count){ if(places>=count){