已采纳回答 / 精慕门6399046
                                
                                                            缺省值在Customer类的构造函数的声明中写就可以了。譬如:Customer(string name = "",int age = 0);在.cpp文件中实现Customer构造函数如下:Customer:Customer(string name,int age){}
                            
                        
                        2019-03-09
                
            
                                最新回答 / AngerLee
                                
                                                            本节插入元素是int类型,只需要关注int 类型的值,所以使用不带&的类型将int的值传入。出列是为了获取队列中的值,我们调用函数获得调用函数内部的计算结果有三种方式:返回值,指针,引用,本节用的是引用,即&,我们也可以使用指针或者返回值去获取函数内部的结算结果。
                            
                        
                        2019-03-07
                
            感觉遍历函数这样写比较好理解,有错误望指出
void MyQueue::QueueTraverse()
{
for(int i = 0 ; i < m_iQueueLen; i++)
{
cout << m_pQueue[(m_iHead+i)%m_iQueueCapacity]<<endl;
}
}
                void MyQueue::QueueTraverse()
{
for(int i = 0 ; i < m_iQueueLen; i++)
{
cout << m_pQueue[(m_iHead+i)%m_iQueueCapacity]<<endl;
}
}
                    
                    2019-01-08
                
             
             
        











