smart pointer<<== will have to look that up.. I tried using pointers, and references but It still would error out... I also tried another object.. but the output comes out funny. See below.
Player...
Type: Posts; User: Darius Dempsey
smart pointer<<== will have to look that up.. I tried using pointers, and references but It still would error out... I also tried another object.. but the output comes out funny. See below.
Player...
I named the array Player1 because it is where I will store the 5 cards for player1, there will be a player2 as well. If I am doing it wrong..can you tell how I should be approaching this. I already...
Thanks @laserlight... Well I tried the array as a string too string player1[5], but It still didn't work.. So what should I use in order to pass the value to an array?
well I did try it this way..where I tried to pass it to an array..
char player1[5];
for (int j = 0; j < 5; j++) {
cout<< "Card_" << (j+1) << ": ";
player1[j].toString();
...
I am writing a program for a poker game.. I created a class to get cards and create deck.. the problem I am having now is how to deal 5 cards to an array to be evaluated later. I want to call the...