Hand* hand2_objects = new Hand[2];
Hand test[1];
for ( int i = 0; i < 51; i++ )
{
test_card = deck_game.dealCard();
test[0].setTakeCard(test_card);
}
The dealCard() function removes the top card of the deck until the deck is empty with zero cards. I transferred all of these cards into the array test[0] that will contain all 52 cards of the deck.
Now, how do I distribute all of the 52 cards from this test[0] array to fill up the two objects in the hand2_objects array? I need to do this so that hand2_objects[0] will contain the first 26 cards, and hand2_objects[1] to contain the rest of the 26 cards -- all in all, 52 cards total.