Search:

Type: Posts; User: trums1992

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,224

    When I try to compile I get an error that it cant...

    When I try to compile I get an error that it cant read the .wav file. Is there something special I have to put in for the program to use the music. I am trying the PlaySound function as described...
  2. Replies
    4
    Views
    1,224

    Sorry about that. Its a win32 program and I am...

    Sorry about that. Its a win32 program and I am using the bcc32 compiler to link them into an executable file
  3. Replies
    4
    Views
    1,224

    Music during program

    Ok so I am wondering how to make a song play during my program. I am aware that I must compile the song and the .wav file together (link them may be the more appropriate term) but I am wondering if I...
  4. Replies
    8
    Views
    1,868

    That worked very nicely. Thank you very much, you...

    That worked very nicely. Thank you very much, you made my life much easier. Thanks again
  5. Replies
    8
    Views
    1,868

    Ok so how would I go about doing that then? I...

    Ok so how would I go about doing that then? I know I will have to call a function deal_deck and store the dealt card into the plycard, which is the players hand. My deal_deck function deals one card...
  6. Replies
    8
    Views
    1,868

    My program does this already I believe. I was...

    My program does this already I believe. I was just wondering if I have to store the dealt card in an array for each player so that it knows which cards are whose.
  7. Replies
    8
    Views
    1,868

    Dealing cards to players

    So I am currently creating a game of blackjack and I am found to be stuck. I am trying to deal out the cards between a computer and a user. I then want those cards to be set as part of the players...
  8. Replies
    8
    Views
    955

    I have tried this numerous times and it did not...

    I have tried this numerous times and it did not work
  9. Replies
    8
    Views
    955

    The card is declared globally. Ok so if I was to...

    The card is declared globally. Ok so if I was to use two loops how do I compare the suit to the deck suit. If I do something like this...


    for(j=0;j<4;j++)
    {if (suit[j][0]==...
  10. Replies
    8
    Views
    955

    Ok that make sense. I am now having trouble...

    Ok that make sense. I am now having trouble searching the entire deck. It searches the first thirteen then stops searching.


    int search_deck(int deck[], int size)
    {
    int i;
    ...
  11. Replies
    8
    Views
    955

    Multi-dimensional array searching

    I recently created a program that shuffles a deck and prints it out. This was done using a multi-dimensional array


    void print_deck(int deck[], int size)
    {
    int i;
    char...
  12. Replies
    5
    Views
    1,404

    Never mind I ended up figuring it out. Thanks

    Never mind I ended up figuring it out. Thanks
  13. Replies
    5
    Views
    1,404

    That does make perfect sense and it worked...

    That does make perfect sense and it worked perfectly. Thank you. Now another question. Say I wanted to input a card number and get the card at that position in the deck. Say I pick 40, the program...
  14. Replies
    5
    Views
    1,404

    It does make sense to do that, but how would I go...

    It does make sense to do that, but how would I go about it. I do not know how to use the array function as a conditional statement.
  15. Replies
    5
    Views
    1,404

    Find card number from deck

    I was given an assignment to simulate a deck of 52 playing cards. I am required to shuffle the deck and all of this must be done using information learned previously in the class thus far. We have...
Results 1 to 15 of 15