I have error on this line:
Book a("Title1", "Author1", 134, 30, authors a1.toString());
error: expected ')' before 'a1'
Can someone help me fix this? I need to call "Author" in Book object...
Book(string t, string p, int pagess, double pricee,vector<Author *> authors);
These are the arguments the code is expecting you to pass in.
Book a("Title1", "Author1", 134, 30, authors a1.toString());
Here, you pass in everything correctly until the end there. I assume you simply want to pass in "authors" without a1.toString() - the constructor is not expecting a string.
Book a("Title1", "Author1", 134, 30, authors);
This ^ is what I assume you wanted.