Is there any C++ container that can store 2 (or more) types of values, such as ints and chars? I want to make a blackjack game. The deck has to consist of both ints and chars. I don’t want to initialize it with just numbers (so don’t say anything about that!). I am a very beginner programmer, so don’t make it too complicated.
Share
Since you’re a beginner, just use the basic stuff: a struct.
Output:
You can see the output live on Ideone.