title: Converting integer to string in c++
body: <p>This is the code I wrote to convert integer to string.</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main()
  {
      string s;
      int b=5;
      s.push_back((char)b);
      cout&lt;&lt;s&lt;&lt;endl;
  }
  </code></pre>
  
  <p>I expected the output to be 5 but it is giving me blank space.</p>
  
  <p>I know there is another way of doing it using stringstream but I want to know what is wrong in this method?</p>