Well, that's great. The array is an array that "will store the 5 cards for player1". So why are you trying to store chars or strings instead of Card objects (or (smart) pointers to Card objects)?
Type: Posts; User: laserlight
Well, that's great. The array is an array that "will store the 5 cards for player1". So why are you trying to store chars or strings instead of Card objects (or (smart) pointers to Card objects)?
You can't just try giving the array a type, cross your fingers, and hope that it works. You need to understand what you are doing.
Why did you name this array player1? What is this array for? What...
player1 is an array of 5 char, therefore player[1] is a char, and a char does not have a toString member function.