My bad. I found the error.
I used wrong indexing in dealFive.
Type: Posts; User: kirchhoff
My bad. I found the error.
I used wrong indexing in dealFive.
I am doing a card dealing and shuffling program.
Here's a part of the code.
...
int hand1[5][2] = {0}; //initialized player1 hand, an array of zero
int hand2[5][2] = {0}; //same for...
Yes, it was 1.
Thank you for the help, c99tutorial and Andreas.
Thanks for the reply.
I have addressed the *iPtr+5 issue.
void dealFive(int wDeck[][13],int hand[5][2], int *iPtr){
int row, col;
int fivecards;
fivecards = (*iPtr)+5;
for...
I am doing the card dealing function (from Deitel's C (thick) book)
The function receives the address of the shuffled deck to pick from, the address (the player's hand) and a pointer of the last...