Some users were having problems previously with displaying playing card suits with cout. As of yet, I haven't been able to figure out how to do this with cout, but I've found a work around with wcout. see code below:
Hmm there used to be symbols in the windows console for these, an alternate ascii mapping or something... I don't see them now but I know they used to be there.
you may have to keep using the unicode solution.
Another way is to use HSCD letters.
They are mapped to control characters.
3 → ♥
4 → ♦
5 → ♣
6 → ♠
You can still get them (on Windows) by holding down the Alt key and typing 3, 4, 5, or 6 on the numeric keypad, then releasing the Alt key.
However, control codes do not mix well with C++ I/O. Teh’s trick works because it uses Windows-specific code to switch the console to a half-baked UCS2 mode, then outputs the Unicode values for the symbols, AND he is using Microsoft’s compiler, which knows of such things and isn’t (completely) broken for wide character types.
Unicode on the Windows Console is actually a whole lot messier than this one example.