This commit is contained in:
Oleksandr Vyshniakov 2025-03-13 20:53:16 +01:00
parent 1963645434
commit cf854506ab
2 changed files with 18 additions and 4 deletions

View File

@ -1,6 +1,20 @@
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
int main() {
return 0;
}
typedef struct {
char name[100];
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;
}

Binary file not shown.