You have a typical array overrun.
I guess your initial value for (*iPtr) is 1, right?
Now look at your code:
void dealFive(int wDeck[][13],int hand[5][2], int *iPtr)
{
...
...
Type: Posts; User: AndiPersti
You have a typical array overrun.
I guess your initial value for (*iPtr) is 1, right?
Now look at your code:
void dealFive(int wDeck[][13],int hand[5][2], int *iPtr)
{
...
...
for (;(*iPtr)<((*iPtr)+5); (*iPtr)++)
I'm not sure what you want to do, but your condition is definitely wrong because the value "iPtr" points to will always be smaller than the same value + 5...