bool List::InseartHead(Node *pNode)
{
Node *tmp = m_pList->next;
Node *newNode = new Node;
if (newNode == NULL) {
return false;
}
newNode->data = pNode->data;
m_pList->next = newNode;
newNode->next = tmp;
return true;
}
bool List::ListInsertTail(Node *pNode)
{
{
Node *tmp = m_pList->next;
Node *newNode = new Node;
if (newNode == NULL) {
return false;
}
newNode->data = pNode->data;
m_pList->next = newNode;
newNode->next = tmp;
return true;
}
bool List::ListInsertTail(Node *pNode)
{