Search:

Type: Posts; User: acohen

Search: Search took 0.01 seconds.

  1. I don't write C++, so I can't say. But yes I see...

    I don't write C++, so I can't say. But yes I see that much is hidden from you when you write languages that are written on top of C.
  2. this is because of the static allocation, right?...

    this is because of the static allocation, right? Because the static allocation means there's one copy of the data during the entire lifetime of the program?

    Is John's solution, where the function...
  3. Static vs. Dynamic Allocation for a rolling dice function

    C beginner here, so bear with me.

    I have a function that does a yahtzee roll:



    #include <stdlib.h>
    #define DIE_SIDES 6
    #define MAX_DICE_PER_ROLL 5
Results 1 to 3 of 3