120: error: no match for ‘operator=’ in ‘customers[i] = (((BookStoreCustomer*)operator new(24u)), (<anonymous>->BookStoreCustomer::BookStoreCustomer(), <anonymous>))’ A1-BookStoreCustomer.h:15: note: candidates are: BookStoreCustomer& BookStoreCustomer::operator=(const BookStoreCustomer&)
and then this is where the error is occuring somewhere in this chunk of code
// Wait for user to enter the number of customers
cout << "Enter number of Customers: ";
cin >> numCust;
customers = new BookStoreCustomer[numCust];
// get customer data on number of books purchased
for (int i = 0; i<numCust; i++) {
cout << "Enter data for Buyer " + (i+1);
customers[i] = new BookStoreCustomer();
customers[i].readInput();
}

New Topic/Question
This topic is locked



MultiQuote







|