Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

help with some basic pointer problem

0 views
Skip to first unread message

Fritz Egner

unread,
Jul 9, 2000, 3:00:00 AM7/9/00
to
Hi there
\\\\\\\\\\\\

I study computer science.
Tomorrow I have to be finish with some work (a small c-programm).

If someone could send me an example, how to make a "list" with "pointers".
Because I have to store many, many values.

(I remember in Modula..)
Something like:

record Element {
int value;
int *nextPointer;
}


for(int i=0;i<=10;i++) {
main = new(Element);
main.value = 123;
temp = new (Temp);
main.nextPointer = tempM;
}

--> I need this in C (not C++),
Thanks,
Adrian

0 new messages