string findBook(vector<Books> listBooks, string title,string author){ Books specificBookSearched; string test; int i; for(i = 0; i < listBooks.size(); i++){ if(listBooks[i].getAuthor().find(author) != string::npos){ specificBookSearched = listBooks[i]; test = specificBookSearched.getTitle() + " " + specificBookSearched.getAuthor() + " " + specificBookSearched.getPublisher(); break; } else{ test = "book not found"; } } return test; }