refresh
This commit is contained in:
		
							parent
							
								
									1963645434
								
							
						
					
					
						commit
						cf854506ab
					
				@ -1,6 +1,20 @@
 | 
				
			|||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					#include <ctype.h>
 | 
				
			||||||
 | 
					#include <stdlib.h>
 | 
				
			||||||
 | 
					#include <string.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int main() {
 | 
					typedef struct {
 | 
				
			||||||
    
 | 
					    char name[100];
 | 
				
			||||||
    return 0;
 | 
					    int golosa;
 | 
				
			||||||
}
 | 
					} nameandgolosa;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#define MAX_STUDENTS 1000;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					int najtistudenta (nameandgolosa students[], int count, const char* name) {
 | 
				
			||||||
 | 
					    for (int i = 0; i < count; i++) {
 | 
				
			||||||
 | 
					        if (strcmp(students[i].name, name) == 0) {
 | 
				
			||||||
 | 
					            return i;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    return -1;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								du4/program.exe
									
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								du4/program.exe
									
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
		Reference in New Issue
	
	Block a user