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...
Type: Posts; User: trums1992
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...
Sorry about that. Its a win32 program and I am using the bcc32 compiler to link them into an executable file
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...
That worked very nicely. Thank you very much, you made my life much easier. Thanks again
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...
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.
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...
I have tried this numerous times and it did not work
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]==...
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;
...
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...
Never mind I ended up figuring it out. Thanks
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...
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.
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...