Heehee I typed that fast, meant it to be other way
MyStuff[i+1]->x = 3;
Thanks for the help you two :)!
Type: Posts; User: Magical
Heehee I typed that fast, meant it to be other way
MyStuff[i+1]->x = 3;
Thanks for the help you two :)!
MyStuff[i] = (tStuff *) malloc(sizeof(tStuff));
1 = MyStuff[i]->x;
2 = MyStuff[i]->y;
3 = MyStuff[i+1]->x;
Is this close to how I would do it? It feels like this is more of a Struct of Arrays...
I know linked lists already :/ Not sure how they relate to making an array hold pointers.
I feel like I'm missing something basic lol.
Normally I would (Which is why I don't really understand this lol), but I need to move the pointer around. I hit a brick wall in not knowing how to move forward :(
Could someone try to explain to me how to make an array of pointers to a structure?
I am trying to create a bunch of structures and store my access to them by storing the pointer to them in an...