Include Include Include Include Lt Iostreamgt Lt Iomanipgt Lt Cstringgt Book H

The implementation file is the book.cpp, which I am have to write for the book.h file. I am having trouble with the Set function. I am trying assign t and a by doing author = a and title = t, but I continue to get errors. Can you tell how to do it properly? The assignment operators worked for the last two member data, but not for the array assignment.

  • Attachment 1
  • Attachment 2

#include#include#include#include <iostream><iomanip><cstring>"book.h" using namespace std;Book::Book(){strcpy(title, " ");strcpy(author, "…

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *