I put code tags around the code [code][/code]. If you don't want to write them manually you can just select the code and press the <> button to the right.
CARD_VALUES[] is a string array holding all possible values and next_char comes from an ifstream would this work to check if the incoming character is a possible card value?
it could contain two characters for values like ten and i'm reading in from a file I have no control over. so the ifstream comes in as characters then i have to convert each to a string to use the easy comparison operators(i.e. ==) that can't be used with c-strings. i did miss the brackets thanks.
what other way can I use to convert them into a string?