Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. void del_book_info(book* b){
  2. b->title = "";
  3. b->author = "";
  4.  
  5. int i, j;
  6. for(i = 0; i < DEFAULT_SIZE; i++){
  7. for(j = i+1; j < DEFAULT_SIZE; j++){
  8. if(heap[i].author=="" && heap[i].title=="" && heap[j].author=="" && heap[j].title==""){
  9. heap[i].year = j;
  10. j = DEAFULT_SIZE;
  11. }
  12. }
  13. if(i==DEFAULT_SIZE-1 && heap[i].author=="" && heap[i].title==""){
  14. heap[i].year = -1;
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement