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