lukusm

Untitled

Jan 16th, 2015
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. void borrowBook(book_list* b1) {
  2.     char tab[80];
  3.     book* tmp;
  4.     printf("Insert a title to borrow:\n");
  5.     gets(tab);
  6.     tmp= b1->first;
  7.     do {
  8.         if(strcmp(tab,tmp->title)==0)
  9.             tmp->copies--;
  10.         tmp=tmp->next;
  11.     }while(tmp!=b1->first);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment