Quote:Original post by LodeQuote:Original post by Kasya
Example:
std::cout << "\u2660"; //black spade
std::cout << "\u2663"; //black club
etc.
That gives indeed those symbols in the Konsole terminal in Linux if I try.
Could anyone else try with his/her Windows flavor? Thanks! :)
Nope, still ?'s for me... (Win 7).
EDIT: This seems to work though:
int main(int, char*[]) { char heart = '\3'; char diamond = '\4'; char club = '\5'; char spade = '\6'; std::string all = "\3\4\5\6"; std::cout << heart << diamond << club << spade << std::endl; std::cout << all << std::endl;}
[Edited by - sprite_hound on April 23, 2010 2:26:37 PM]