为什么我给队列指针分配内存的时候它总是编译不通过
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;
}