Hand *hand2_objects = new Hand[numPlayers];
for ( int i = 0; i < 52; i++ )
test_card = deck_game.dealCard();
//If two players...
//hand2_objects = ???;
//hand2_objects = ????;
cout << test.toStringV() << endl;
Let's say that I have dynamically allocated two hand_objects, meaning that there are two players in the game. The loop creates creates 52 cards and puts it in an object in array test. Because the number of players vary, how do I create a loop that will populate the number of the hand_objects array, where each position of the array represents a players cards?
For example, hand_objects is Player 1's HAND, containing the first 26 cards, and hand_objects is Player 2's HAND, containing the rest of the 26 cards of the deck.