I have to write a program that reads in playing card values and translates them to the correct output. For example if a user enters:QS then the output would be a queen of spades. I am using a switch statement but how can I read the second character. Right now it just reads the first character and then prints out just that corresponding title.
All 3 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.