各位好,實現(xiàn)deque的構(gòu)造函數(shù):stNode** m_map;//map的首地址MyDeque(){m_singleListSize = singleListSize ;m_mapSize = mapSize;//create a new mapm_map = new stNode*[m_mapSize][NULL];m_size = 0;m_indexStart = m_mapSize/2;m_indexEnd = m_indexStart;m_singleIndexStart = 0;m_singleIndexEnd = 0;}報的錯誤是:cannot convert from 'MyDeque<T>::stNode *(*)[1]' to 'MyDeque<T>::stNode **',為什么我看別人也這樣做的沒有報這個錯誤呢?謝謝
- 2 回答
- 0 關(guān)注
- 891 瀏覽
添加回答
舉報
0/150
提交
取消