Search:

Type: Posts; User: Alcatar

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    3,002

    Well, I just pasted a part of my function. Here's...

    Well, I just pasted a part of my function. Here's the rest:


    struct List
    {
    int x;
    List *n;
    List *p;
    };
  2. Replies
    5
    Views
    3,002

    Singly-linked list

    I want to add an element to the list before the selected one. could anyone fix my code? Because it doesn't work for me.


    List *get(int n)
    {
    List *pcurr = h;
    for (int i = 0; i < n; i++) pcurr...
Results 1 to 2 of 2