test
This commit is contained in:
parent
2f15bd7111
commit
43632bf685
4
anketa.c
4
anketa.c
@ -6,11 +6,11 @@
|
|||||||
int count_students(struct student* students){
|
int count_students(struct student* students){
|
||||||
int i;
|
int i;
|
||||||
for(i=0; i<MAXSTUDENTS; i++){
|
for(i=0; i<MAXSTUDENTS; i++){
|
||||||
if(students[i].votes<0){
|
if(students[i].votes<=0){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return i-1;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
int search(struct student* students,const char* name){
|
int search(struct student* students,const char* name){
|
||||||
|
Loading…
Reference in New Issue
Block a user