test
This commit is contained in:
parent
1183d33467
commit
84a8940644
10
anketa.c
10
anketa.c
@ -4,13 +4,13 @@
|
||||
#include <assert.h>
|
||||
|
||||
int count_students(struct student* students){
|
||||
int x=0;
|
||||
for(int i=0; i<MAXSTUDENTS; i++){
|
||||
if(students[i].votes>0){
|
||||
x++;
|
||||
int i;
|
||||
for(i=0; i<MAXSTUDENTS; i++){
|
||||
if(students[i].votes<0){
|
||||
break;
|
||||
}
|
||||
}
|
||||
return x;
|
||||
return i;
|
||||
}
|
||||
|
||||
int search(struct student* students,const char* name){
|
||||
|
Loading…
Reference in New Issue
Block a user