0

Hiya,

Im trying make a simple cards game and i was wondering how in c++ can i use the characters ♠ ♣ ♥ ♦ , i think it would be betetr than me printing out the words each time, Are these in some extended character set anywhere? i tried googling but i could only find html versions like &spades; or xsl <spade/>.

Anyone know how i could print the ♠ ♣ ♥ ♦ symbols in a console application?

Thanks for your time

Edited by Kanoisa: n/a

3
Contributors
3
Replies
6
Views
7 Years
Discussion Span
Last Post by Kanoisa
2

These should output the same characters.

char *hearts  = "\x03";  //♥
char *diamond = "\x04";  //♦
char *clubs   = "\x05";  //♣
char *spades  = "\x06";  //♠

Edited by ShadowScripter: n/a

0

Nice one,
I had made a function that looped through all the 0-256 char's but coudlent find it, maybe it was because i was using it as unsigned i dunno, but that works perfect thanks allot :)

Edited by Kanoisa: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.