i dont know was wrong with print function i need to order the cards eg, two to Ace of Spades, two to Ace of Hearts, two to Ace of Clubs, and two to Ace of Diamonds).
void printDeck(Card deck[], int num)
{
for (int x=0; x<num; x++){
cout << deck[x].card_suit << " of " <<deck[x].card_rank << endl;
}
}
void createDeck( Card deck[], int num)
{
int y = 0, z = 2;
for( int x=0; x<num ; x++){
if(z==15){
y++;
z=2;
}
deck[x].card_suit = (Suit)y;
deck[x].card_rank = (Rank)z;
z++;
}