oops. thanks.
Type: Posts; User: budala
oops. thanks.
thanks. works like a charm. put it in a loop
for (i=0; i<=n; i++)
{
q[i] = malloc(sizeof(monomial));
q[i] = p[i];
}
I have an array of pointers to a struct called p.
typedef struct node
{
int exp;
float koef;
struct node *next;
} monomial;