Guest User

Untitled

a guest
May 25th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. void unreg_student(slist *students, int id, int number){
  2. clist * tempc;
  3. slist * temps;
  4.  
  5. for (;students->info->id!=id;students=students->next);
  6. tempc=students->info->courses;
  7. for (;tempc->info->number!=number;tempc=tempc->next);
  8. temps=tempc->info->students;
  9. for (;temps->info->id!=id;temps=temps->next);
  10. tempc->info->students= remove_from_list_s(tempc->info->students,temps);
  11. students->info->courses= remove_from_list_c(students->info->courses,tempc);
  12. }
Add Comment
Please, Sign In to add comment