test
This commit is contained in:
parent
43632bf685
commit
83ee8f9add
7
anketa.c
7
anketa.c
@ -14,14 +14,13 @@ return i;
|
||||
}
|
||||
|
||||
int search(struct student* students,const char* name){
|
||||
int index=-1;
|
||||
|
||||
for(int i=0; i<MAXSTUDENTS; i++){
|
||||
if(strcmp(students[i].name,name)==0){
|
||||
index=i;
|
||||
break;
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return index;
|
||||
return -1;
|
||||
}
|
||||
|
||||
int add_student(struct student* students, const char* name, int votes){
|
||||
|
Loading…
Reference in New Issue
Block a user