I am just learning C++ and I may be overly focused on this topic because I am studying it now. But your problem seems like it would be solved using an enumerator. You would set it up with 11 = Jack, 12 = Queen, 13 = King, 14 = Ace High. I can't write the code, but you can look up how to use enumerators. This site's tutorial explains it.