for( int f = 0; f < numPlayers; f++ ) { hands[ f ].player = f; for( int z = 0; z < NUM_FACES; z++ ) { hands[ f ].faceCounts[ z ] = 0; } cout << "Player " << f + 1 << "'s cards are:" << endl << endl; for( int g = 0; g < CARDS_PER_PLAYER; g++ ) { cout << deck[ g ].face << " of " << deck[ g ].suit << endl; for( int h = 0; h < NUM_FACES; h++ ) { if( deck[ g ].face == faces[ h ] ) { hands[ f ].faceCounts[ h ]++; } } } }