void SingleList::addHead(int value){ ISingleNode* newSingleNode = new SingleNode(); newSingleNode->setValue(value); newSingleNode->setNext(Head); Head = newSingleNode; }
void SingleList::addHead(int value){ count++; ISingleNode *node = new SingleNode(); node->setValue(value); if(this->head == NULL) node->setNext(NULL); else node->setNext(this->head); this->setHead(node); }