Well, I just pasted a part of my function. Here's the rest:
struct List
{
int x;
List *n;
List *p;
};
Type: Posts; User: Alcatar
Well, I just pasted a part of my function. Here's the rest:
struct List
{
int x;
List *n;
List *p;
};
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...