+ 2

Displaying symbol in C++

Hello everyone. I am developing a card game on C++. How can I display special character like '♠' in C++? Thank you in advance!

3rd Jan 2017, 11:18 AM
Gary M Lau
Gary M Lau - avatar
2 odpowiedzi
+ 5
http://www.cplusplus.com/forum/general/70435/ write "\5" (not working on code playground)
3rd Jan 2017, 11:36 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
That will be character 6 in code 850, default of windows terminal You may do this - cout<<char(6);
5th May 2017, 5:01 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar