Hey guys I'm working on a Pythagorean Triple program.
In my program everything worked and I found all the possible Pythagorean triples below the value 500. Unfortunately I had repeats due to the...
Type: Posts; User: Denied88
Hey guys I'm working on a Pythagorean Triple program.
In my program everything worked and I found all the possible Pythagorean triples below the value 500. Unfortunately I had repeats due to the...
int main()
{
const char *suit[ 4 ] =
{ "Hearts" , "Diamonds" , "Clubs" , "Spades" };
const char *face[ 13 ] =
{"Ace", "Deuce" , "Three", "Four",
"Five", "Six", "Seven", "Eight",...
Well guys, I made a multi-dimensional deck array instead of a card array. My deck array consists of a possible 13 face values and a possible 4 suit values. Because I used a multi-dimensional array...
Yeah, I didn't exactly know what darryl was talking about, but I got the general idea. Thanks for the help guys i've got some experimenting to do.
So far, I've tried comparing the cards individually. Unfortunately I've discovered that it would probably take somewhere around 10,000 lines of code to write.
I think, due to the fact that you...
The only way I can think to give the cards values like that is to compare the cards with eachother. I. E.
if (card 1 = card 2) {
Then convert to a pair value
}
if (card 1 = card 3) ...
Hello everyone, I currently have created a poker program and just recently due to some help from everyone stopped repeating cards. It deals five cards to you, and after you discard a maximum of...
OK, but how can I initialize a boolean Array?
I'm currently working on a poker program, it's an exercise in my Fourth Edition Deitel C++ How to Program book. Everything works properly, but my cards seem to repeat. I don't have any code...