Изменить 'du6/program.c'
This commit is contained in:
		
							parent
							
								
									8ce0eecee0
								
							
						
					
					
						commit
						cba3a8eb0e
					
				@ -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){
 | 
			
		||||
@ -113,18 +111,4 @@ void print(struct LIS *list,int count,int places){
 | 
			
		||||
    else{
 | 
			
		||||
        puts("Ziadne prihlasky");
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user