Changing the 1 to 2 fixed the whole thing!! THANK YOU BIG TIME. That was the last thing I had to fix for my program.
Type: Posts; User: golfwang
Changing the 1 to 2 fixed the whole thing!! THANK YOU BIG TIME. That was the last thing I had to fix for my program.
Yeah, sorry, I should have posted my whole entire program it would have made sense why I had 'cards' instead of 'card', etc. 'cards' corresponds to how many cards the user wants to deal. Thank you...
int card;
char value;
char suit;
int deck[53]={0};
for (i=1; i<=cards; i++)
{
int v;
do {
WRONG MOVE. I ended up getting 55Hearts 65Hearts and a bunch of mumbo jumbo.
What I declared them as? CHAR / character. I'll try changing them to INT.
Hey guys! Quick question....when making your card dealing program where it's suppose to have the VALUE(1,2,3,J,Q,K,A)10751, instead a 'T' pops up?
Attached is an example of what I'm talking...
@Elysia: Yeah, I know he did. I thanked him! Since I'm new to this whole board thing, he clarified what I needed to write if I needed help next time and to not just throw something out and wait for...
@iMalc: Hope you enjoyed wasting your time writing that, because I honestly wasn't looking for any sympathy whatsoever! Anyways I have the program all figured out now. Thanks though. =)
Thanks guys!! We're only allowed to use what we've learned in class so far.....if statements, arrays, LOOPS.
10732
Above is the project. I am only doing the CARD DEALING as of now.
This is what I have so far for the CARDS. I'm having trouble outputting different cards and a bunch of other...