Search:

Type: Posts; User: espnstar

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,008

    linked list Remove a node

    Does this seem right? I am removing an integer node from the linked list.



    LNode* RemoveItem(LNode *headPtr, int targetItem)
    {
    struct LNode *trailPtr;
    for (headPtr = LNode;...
  2. Thread: linked list

    by espnstar
    Replies
    2
    Views
    802

    linked list

    I am trying to add a node. Does this seem right??


    LNode* AddItem(LNode *headPtr, int newItem)
    {
    auto struct LNode **nodePtr;
    for (nodePtr = &LNode; *nodePtr != NULL; nodePtr =...
  3. Thread: Linked list

    by espnstar
    Replies
    2
    Views
    948

    Linked list

    Well, We were taught linked list today and I have no clue about it, and he immediately assigned us this HW. Can someone help me understand this assignment.
    #1) AddItem
    This function allows the...
Results 1 to 3 of 3