Question: Function to Remove Books void removeBook ( Book books [ ] , int& count ) : Create removeBook, a function that asks for a book

Function to Remove Books void removeBook(Book books[], int& count): Create removeBook, a function that asks for a book ID, removes the corresponding book if found. Book IDs should not be reused.
Example, if there are 5 books in the array and we assume the IDs are [1,2,3,4,5] and we delete 2 and 5 the array should look like this [1,3,4](with respesctive structs) then when add add a book it should look like this [1,3,4,6]. If we delete 6 and add another book we would end up with [1,3,4,7].

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!