title: Printing smiley face c++
body: <p>I'm trying to print out the smiley face (from ascii) based on the amount of times the user asks for it, but on the console output screen, it only shows a square with another one inside of it. Where have I gone wrong?</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main()
  {
      int smile;
  
      cout &lt;&lt; "How many smiley faces do you want to see? ";
      cin &gt;&gt; smile;
  
      for (int i = 0; i &lt; smile; i++)
      {
          cout &lt;&lt; static_cast&lt;char&gt;(1) &lt;&lt; "\t";
      }
      cout &lt;&lt; endl;
      return 0;
  }
  </code></pre>