I'm developing a card playing game and would like to print out the symbol for hearts, diamonds, spades and clubs. My target platform will be Linux.
In Windows, I know how to print out these symbols. For example, to print out a heart (in ASCII) I wrote...
// in Windows, print a ASCII Heart
#include <iostream>
using std::cout;
using std::endl;
int main()
{
char foo = '\3';
cout << heart << endl;
system ( "PAUSE" );
return 0;
}
However, as I alluded to, a heart symbol won't be printed in Linux. Is there a standard library that can be used to print out a symbol for hearts, diamonds, spades and clubs in both Linux and Windows? What I have been researching so far is looking at Unicode since it is my understanding this is universal.
Thanks for any assistance provided.