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

This commit is contained in:
Pavlo Tverdyi 2020-04-16 14:59:30 +00:00
parent 8ce0eecee0
commit cba3a8eb0e

View File

@ -35,9 +35,7 @@ char keep(struct LIS* list,int places){
int count=0;
char names[100];
for(;fgets(names,100,stdin);){
for(int i=0; i<100;i++){
if(names[i]=='\n') continue;
}
if(names[0]=='\n') continue;
if(sscanf(names,"%s %s",list[count].fname,list[count].name)==2){
count++;
if(places>=count){
@ -114,17 +112,3 @@ void print(struct LIS *list,int count,int places){
puts("Ziadne prihlasky");
}
}