We need a function that simply adds an element to the beginning. I wrote something here, but I still need to do something with a pointer to the previous element, since I have a doubly-linked list, help to remake.
void add(INFO d, BOOK *&head) { BOOK *tmp = new BOOK; tmp->data = d; tmp->next = head; head=tmp; }