Search:

Type: Posts; User: Sorinx

Search: Search took 0.01 seconds.

  1. Replies
    25
    Views
    2,586

    void freeArray(int ***a) { int i,j;...

    void freeArray(int ***a) {

    int i,j;
    for(i = 0; i <=NUMBER_OF_STUDETS; i++){
    for(j = 0; j <= NUMBER_OF_CLASSES; j++){
    free(a[i][j]);
    }
    free(a[i]);
    }
    free(a);
  2. Replies
    25
    Views
    2,586

    Nah just commenting on my own stupidity, but I'm...

    Nah just commenting on my own stupidity, but I'm literally falling asleep, looking at free function now. never did much with malloc prior
  3. Replies
    25
    Views
    2,586

    Lol, wow is all I can say. I know better than this

    Lol, wow is all I can say. I know better than this
  4. Replies
    25
    Views
    2,586

    Ahh yes, I noticed that and changed it, I can...

    Ahh yes, I noticed that and changed it, I can enter the inputs, but then afterwards it crashes.
  5. Replies
    25
    Views
    2,586

    Bare with me I'm a bit over tired, why am I out...

    Bare with me I'm a bit over tired, why am I out of bounds?
  6. Replies
    25
    Views
    2,586

    Ahh sorry, I edit it in main, whenever I respond...

    Ahh sorry, I edit it in main, whenever I respond about the changes!
  7. Replies
    25
    Views
    2,586

    Thanks I missed that semi colon, it's early and...

    Thanks I missed that semi colon, it's early and my spacing is horrid atm, bad habits. Still same result however
  8. Replies
    25
    Views
    2,586

    Ok I wrote a function to free my memory, and I...

    Ok I wrote a function to free my memory, and I won't cast it in the future. Trying to figure out what I am doing wrong
  9. Replies
    25
    Views
    2,586

    what should I do instead of casting malloc?

    what should I do instead of casting malloc?
  10. Replies
    25
    Views
    2,586

    Just crashes when I try and run

    Just crashes when I try and run
  11. Replies
    25
    Views
    2,586

    Dynamic Allocating Array and Function Call

    Clearly I'm not doing this right, what am I missing?



    /* printing the average grade for every student in every class.
    printing out the average grade per class; printing out the average grade...
Results 1 to 11 of 11