refresh
This commit is contained in:
parent
d14dd3ead3
commit
206dd3e427
@ -49,11 +49,7 @@ int main() {
|
||||
continue; // Пропускаем ошибочную строку
|
||||
}
|
||||
|
||||
int index = find_student(students, count, name);
|
||||
|
||||
if (index != -1) {
|
||||
students[index].golosa += golosa;
|
||||
} else {
|
||||
if (find_student(students, count, name) == -1) {
|
||||
strcpy(students[count].name, name);
|
||||
students[count].golosa = golosa;
|
||||
count++;
|
||||
|
Loading…
Reference in New Issue
Block a user