数组内容整体左移一次
- void move_student(int student[], int begin_index, int student_count);
- //数据整体左移,最后位置的为0
- void move_student(int student[], int begin_index, int student_count)
- {
- int i;
- for (i = 0; i < student_count - 1; i++)
- {
- student[i] = student[i + 1];
- }
- student[student_count - 1] = 0;
- }