Displaying symbol in C++ | Sololearn: Learn to code for FREE!
+ 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 ответов
+ 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
Kinshuk Vasisht
Kinshuk Vasisht - avatar