help with bool and const array

Hey I got this program to create an array of playing cards and assign the values and suits and shuffle the array. I'm at the point where I need to output the cards but I need to burn the first card by making it output "**" instead of the card. my cards[] is a constant so I can's assign the first card as such. Any ideas how I can make this work? Thanks for any help

1
2
3
4
5
6
7
8
9
10
11
12
13
void showCards(const int cards[], int numCards, bool hideFirstCard)
{
	if (cards[0])
	{
	hideFirstCard=true;
	cards[0] = '**';
	}

	for(int a = 0; a <= numCards; a++)
	{
		cout >> showCard(cards[a]);
	}
}
1
2
3
4
5
6
7
8
int start = 0;
if (hideFirstCard) {
    cout >> "**";
    start = 1;
}
for (int a = start; a <numCards; ++a) {
    cout >> showCard(cards[a]);
}

Topic archived. No new replies allowed.