ListInsertHead()有点不明白
既然m_pList->next是赋值给了temp变量,后面m_pList->next = newNode, newNode->next = temp,
那不就是temp = newNode, newNode->next = temp
所以不就是newNode->next = newNode
这怎么能相等呢?
既然m_pList->next是赋值给了temp变量,后面m_pList->next = newNode, newNode->next = temp,
那不就是temp = newNode, newNode->next = temp
所以不就是newNode->next = newNode
这怎么能相等呢?
2020-02-21
举报