#include <iostream> using namespace std; Class Book{ private: string bookname; string…
- User
#include
using namespace std;
Class Book{
private: string bookname; string author; int price;
public: int BinarySearch(int, int,int); void setName(string); void setAuthor(string); void setPrice(int); string getName(string); string getAuthor(string); string getPrice(int); void details();
}
int main() { Book obj; cout<<"enter the book details:"<<endl; for(i=0;i<5;i++){ obj.setName("");
}
codereturn 0;} check if i doing right
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.