Search:

Type: Posts; User: Char*Pntr

Search: Search took 0.01 seconds.

  1. Ok, I understand now that you're only allocating...

    Ok, I understand now that you're only allocating enough memory for number of players.
  2. //Dynamically allocate memory for the number of...

    //Dynamically allocate memory for the number of players in the input file
    for (i = 0; i < ticketsbought; i++)
    {
    struct players* player[i] = calloc(ticketsbought, sizeof(int));
    ...
Results 1 to 2 of 2