The reason I don't do it that way is because I want a user to be able to input other values. The char card[3]("A"); line was just used to initialize the variable. But when it is read in from the keyboard, the user should be able to enter a value of one or two characters (hence, the [3] ). But it...
I am having trouble passing a data value to a function. Here is my code:
void get_hand()
{
char card[3]("A");
int number(0),
score(0);
instructions();
cout << "How many cards are you holding? ";
cin >> number;
value_check(number);
do
{
cout << "Enter...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.