I have made a few changes to the funtion, as i cant work out how to use class's...
Code:
char get_card(int c, int b)
{
vector<char> cards;
cards.push_back('A');
cards.push_back('2');
cards.push_back('3');
cards.push_back('4');
cards.push_back('5');
cards.push_back('6');
cards.push_back('7');
cards.push_back('8');
cards.push_back('9');
cards.push_back('10');
cards.push_back('J');
cards.push_back('Q');
cards.push_back('K');
if (b == '1')
{
for (int i=0; i<=randomNumber(0); i++)
{
random_shuffle(cards.begin(), cards.end());
}
}
return cards[c];
}
What i am trying to do is, if i give it a value of 1 for b shuffle the cards, other wise leave that part of code out... But when i try to compile it. i get this error...
too few arguments to function `char get_card(int, int)'