ListInsertHead()有點(diǎn)不明白
既然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
這怎么能相等呢?
舉報(bào)
2020-04-21
大兄弟,相等是“==”符號(hào),這里的“=”符號(hào)是把后面的值賦予給前面的值