Search:

Type: Posts; User: AndiPersti

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,884

    You have a typical array overrun. I guess your...

    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)
    {
    ...
    ...
  2. Replies
    5
    Views
    1,884

    for (;(*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...
Results 1 to 2 of 2