title: C++: Printing ASCII Heart and Diamonds With Platform Independent
body: <p>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.</p>
  
  <p>In Windows, I know how to print out these symbols.  For example, to print out a heart (in ASCII) I wrote...</p>
  
  <pre><code>// in Windows, print a ASCII Heart
  
  #include &lt;iostream&gt;
  
  using std::cout;
  using std::endl;
  
  int main()
  {
   char foo = '\3';
   cout &lt;&lt; heart &lt;&lt; endl;
   system ( "PAUSE" );
   return 0;
  }
  </code></pre>
  
  <p>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.</p>