Skip to content

Commit afb86a5

Browse files
committed
add student
1 parent 9266606 commit afb86a5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Algorithm_sort.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ int main(void){
2323
Student("LHJ", 95),
2424
Student("KMJ", 97),
2525
Student("HMS", 91),
26-
Student("OHJ", 93)
27-
};
28-
sort(students, students+5);
29-
for(int i =0; i<5; i++){
26+
Student("OHJ", 93),
27+
Student("CGE", 91)
28+
};
29+
sort(students, students+6);
30+
for(int i =0; i<6; i++){
3031
cout << students[i].name << ' ';
3132
}
3233
}

Algorithm_sort.exe

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)