Aktualizovat „du5/program.c“
This commit is contained in:
		
							parent
							
								
									68c0d64848
								
							
						
					
					
						commit
						23f90a3c2e
					
				@ -38,7 +38,7 @@ int main(){
 | 
			
		||||
	int score=0;
 | 
			
		||||
	int c =0;
 | 
			
		||||
	char str[100];
 | 
			
		||||
	while(fgets(str,100,stdin)!=EOF){
 | 
			
		||||
	while(fgets(str,100,stdin)!=0){
 | 
			
		||||
	    if(isalpha(str[0])!=0||str[0]=='\n'){
 | 
			
		||||
	      if(c==0){
 | 
			
		||||
          	printf("Nepodarilo nacitat nic\n");
 | 
			
		||||
@ -95,7 +95,11 @@ int main(){
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
  
 | 
			
		||||
    
 | 
			
		||||
  		  if(c==0){
 | 
			
		||||
          	printf("Nepodarilo nacitat nic\n");
 | 
			
		||||
            return 0;
 | 
			
		||||
          }   
 | 
			
		||||
  
 | 
			
		||||
	printf("Vysledky:\n");
 | 
			
		||||
	for(int i =0;i<c;i++){
 | 
			
		||||
	    printf("%d %s\n",PersonList[i].score,PersonList[i].name);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user