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, "…
Leave a Reply
Want to join the discussion?Feel free to contribute!