Search:

Type: Posts; User: coder0101

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    751

    I sketched it out, and as I understand (which may...

    I sketched it out, and as I understand (which may be wrong) it is like this:

    (Using your drawing)

    First I set both p and q to head, which is pointing to NodeA
    Then I set q's next to the next...
  2. Replies
    4
    Views
    751

    Help removing a node from a linked list

    Given the structs:


    struct User{
    char username[256];
    struct UserNode* list; //Head pointer for list
    } ;


    struct UserNode {
  3. Reading in a CSV file and then populating to a linked list

    (I'm coming from a background of a few Java classes and now trying to learn some C++, sorry if I confuse some terminology.)

    Hello. I'm trying to read in a .csv file and then using what is read in...
  4. Linked List insertion at a particular position (need help optimizing)

    I have been working on a program that records the time it takes the user to complete a maze. The user's time is then recorded and inserted into a linked list of structures based on the time (from...
  5. Does it matter where free(node) is placed in this code? (Recursion)

    I'm doing some C programming exercise questions and am not sure about this one:

    Does it matter if we place the "free(node);" statement before the recursive call? Please explain.


    void...
  6. Replies
    3
    Views
    654

    Thanks for the suggestions. So if I make a ...

    Thanks for the suggestions.

    So if I make a
    struct aTime *temp = list_head;

    Do I just need to use that instead of p after the else? Since it is pointing at the head of the linked list and...
  7. Replies
    3
    Views
    654

    Help figuring out Linked List insertion

    I'm trying to figure out how to insert a node into a linked list at a particular location based on a time and am confused. Any suggestions or help would be appreciated.

    I have this declared...
Results 1 to 7 of 7