cv5
This commit is contained in:
		
							parent
							
								
									0d6e6aadd2
								
							
						
					
					
						commit
						67846c51bd
					
				@ -32,7 +32,7 @@ int main() {
 | 
			
		||||
    char name[SIZE];
 | 
			
		||||
    int votes;
 | 
			
		||||
 | 
			
		||||
    printf("Enter votes for 'Student of the Year' contest (or 'q' to quit):\n");
 | 
			
		||||
    //printf("Enter votes for 'Student of the Year' contest (or 'q' to quit):\n");
 | 
			
		||||
    
 | 
			
		||||
    while (fgets(line, SIZE, stdin) != NULL) {
 | 
			
		||||
        // Kontrola ukončenia vstupu
 | 
			
		||||
@ -42,7 +42,7 @@ int main() {
 | 
			
		||||
        
 | 
			
		||||
        // Načítanie počtu hlasov a mena zo vstupu
 | 
			
		||||
        if (sscanf(line, "%d %[^\n]", &votes, name) != 2) {
 | 
			
		||||
            printf("Invalid input format. Exiting.\n");
 | 
			
		||||
            //printf("Invalid input format. Exiting.\n");
 | 
			
		||||
            return 1;
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user