Search:

Type: Posts; User: Magical

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    23,620

    Heehee I typed that fast, meant it to be other...

    Heehee I typed that fast, meant it to be other way
    MyStuff[i+1]->x = 3;


    Thanks for the help you two :)!
  2. Replies
    11
    Views
    23,620

    MyStuff[i] = (tStuff *) malloc(sizeof(tStuff));...

    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...
  3. Replies
    11
    Views
    23,620

    I know linked lists already :/ Not sure how they...

    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.
  4. Replies
    11
    Views
    23,620

    Normally I would (Which is why I don't really...

    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 :(
  5. Replies
    11
    Views
    23,620

    Array of pointers to a struct

    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...
Results 1 to 5 of 5