Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: JPEG to Cur Conversion Pin
ForNow16-May-10 7:10
ForNow16-May-10 7:10 
GeneralRe: JPEG to Cur Conversion Pin
Code-o-mat16-May-10 8:38
Code-o-mat16-May-10 8:38 
GeneralRe: JPEG to Cur Conversion Pin
ForNow16-May-10 8:51
ForNow16-May-10 8:51 
GeneralRe: JPEG to Cur Conversion Pin
Code-o-mat16-May-10 11:47
Code-o-mat16-May-10 11:47 
GeneralRe: JPEG to Cur Conversion --- Awicons did the trick Pin
ForNow16-May-10 8:35
ForNow16-May-10 8:35 
QuestionSolved - Two-Dimensional Array not reading right [modified] Pin
Frank Robertson15-May-10 16:20
Frank Robertson15-May-10 16:20 
AnswerRe: Two-Dimensional Array not reading right PinPopular
Luc Pattyn15-May-10 17:36
sitebuilderLuc Pattyn15-May-10 17:36 
GeneralRe: Two-Dimensional Array not reading right Pin
Frank Robertson15-May-10 19:30
Frank Robertson15-May-10 19:30 
1. you have an error in else if (( hand[count] > 13) && (hand[count] < 26)) what with the values 13, 26, 39 themselves?

The values of 13, 26, and 39 (and 0 (not shown)) are the values identifying the Ace card in an array of cards from 0 - 51. Ahh! I see the error. It should be (( hand[count] > 12) && (hand[count] < 26)) correct?

2.
handColumn[count] = hand[count]/13;

I'm not understanding how this works, apparently. If count is 3, then handColumn[3] = hand[3]/13;. What if hand[3] was 15? Then 15/13 would be 1..... wait! Thats it! 15/13 would be 1.18 or something, but with an int callout, would only display as 1, which would put it in the second column being as it is the second set of cards! Wow... I'm glad I picked up on that. That makes a whole lot of sense. Thanks again!

3.
handRow[count] = hand[count]%13;

Now let's see if I can understand this. Once again, hand[count] is 15. So, 13/15 is 1 with a remainder of 2, so it would put 15 in the 2 row. 15 in a 0-51 deck is card number 3, which would go into the 3rd row which is 2. Okay, I can see how that works now! Thanks a third time!

Now I need to figure out how to use all of this to determine if the set of five cards meets any win conditions for poker....

Thanks a bunch for all the help!
GeneralRe: Two-Dimensional Array not reading right Pin
Luc Pattyn16-May-10 1:07
sitebuilderLuc Pattyn16-May-10 1:07 
GeneralRe: Two-Dimensional Array not reading right Pin
Frank Robertson17-May-10 13:00
Frank Robertson17-May-10 13:00 
GeneralCongrats Pin
Luc Pattyn17-May-10 13:11
sitebuilderLuc Pattyn17-May-10 13:11 
GeneralRe: Two-Dimensional Array not reading right Pin
Iain Clarke, Warrior Programmer16-May-10 20:49
Iain Clarke, Warrior Programmer16-May-10 20:49 
AnswerRe: Two-Dimensional Array not reading right Pin
Aescleal15-May-10 22:42
Aescleal15-May-10 22:42 
GeneralRe: Two-Dimensional Array not reading right Pin
Frank Robertson16-May-10 0:51
Frank Robertson16-May-10 0:51 
QuestionLinux commands Pin
TTPadmin15-May-10 12:07
TTPadmin15-May-10 12:07 
AnswerRe: Linux commands Pin
markkuk15-May-10 12:17
markkuk15-May-10 12:17 
GeneralRe: Linux commands Pin
TTPadmin15-May-10 12:29
TTPadmin15-May-10 12:29 
GeneralRe: Linux commands Pin
CPallini15-May-10 12:39
mveCPallini15-May-10 12:39 
AnswerRe: Linux commands Pin
Paul M Watt15-May-10 20:24
mentorPaul M Watt15-May-10 20:24 
GeneralRe: Linux commands Pin
TTPadmin17-May-10 12:12
TTPadmin17-May-10 12:12 
GeneralRe: Linux commands Pin
TTPadmin19-May-10 12:19
TTPadmin19-May-10 12:19 
QuestionInteracting with a 3rd party application dialog window Pin
Still learning how to code15-May-10 11:55
Still learning how to code15-May-10 11:55 
AnswerRe: Interacting with a 3rd party application dialog window Pin
Paul M Watt15-May-10 20:37
mentorPaul M Watt15-May-10 20:37 
GeneralRe: Interacting with a 3rd party application dialog window - ANSWERED ! Pin
Still learning how to code15-May-10 21:28
Still learning how to code15-May-10 21:28 
Questionfunction doesn't reply Pin
hasani200715-May-10 9:51
hasani200715-May-10 9:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.