MY_Quen::MY_Quen(int quentCapacity)
{
m_QuenCapacity=quentCapacity;
m_head=0;
m_tail=0;
m_Quen=new Customer[m_QuenCapacity];
m_Quenlength=0;
}
class Customer
{
public:
Customer(string name,int age);
virtual ~Customer();
void printInof();
private:
string name_customer;
int age_customer;
};
Customer::Customer(string name,int age)
{
name_customer=name;
age_customer=age;
}
大哥你没有对应的无参构造函数或有参的默认构造函数。。。。。
上课老师不是讲了吗,你在构造函数上赋个默认值就好了
m_Quen=new Customer[m_QuenCapacity];这里老是不通过