do I need a copy oopy constructor?
class book{
string title
string author[4];
}
class Sale{
Book book;
float totalsoldprice;
}
struct salesRecorc{
Sale sale
salesRecord* next;
};
main(){
Book book[2];
//initialise book
//choose book to sell
Sale sale(book)//Do i do this as copy or normal initialisation?
salesRecord* head=Null
head->sale=sale;//do I need copy constructor to do this also?