That's easily done by starting with a zeroed array and for each roll, using the total as an index to increment that value in the array
Is this an assignment requirement or your own? IMO, a linked list is major overkill for this task.
That's easily done by starting with a zeroed array and for each roll, using the total as an index to increment that value in the array
Is this an assignment requirement or your own? IMO, a linked list is major overkill for this task.
Definition: Politics -- Latin, from
poly meaning many and
tics meaning blood sucking parasites
-- Tom Smothers