Search:

Type: Posts; User: kirchhoff

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    674

    My bad. I found the error. I used wrong indexing...

    My bad. I found the error.
    I used wrong indexing in dealFive.
  2. Replies
    1
    Views
    674

    Error with function using pointers

    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...
  3. Replies
    5
    Views
    1,899

    Yes, it was 1. Thank you for the help,...

    Yes, it was 1.

    Thank you for the help, c99tutorial and Andreas.
  4. Replies
    5
    Views
    1,899

    Thanks for the reply. I have addressed the...

    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...
  5. Replies
    5
    Views
    1,899

    Some questions with pointers

    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...
Results 1 to 5 of 5