Search return

closed account (zwMyAqkS)
Thanks
Last edited on
I think you want to search for the name inside the author string instead of the other way around.

 
found = books[i].author.find(name);

In showBooksByAuthor you need to compare books author with name, not the other way around.
Please don't remove your question when you have the answer, this way, nobody can learn from it. Please restore your question to it's original state.
Topic archived. No new replies allowed.