title: size_t convert/cast to string in C++
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5290089/how-to-convert-a-number-to-string-and-vice-versa-in-c">How to convert a number to string and vice versa in C++</a>  </p>
  </blockquote>
  
  
  
  <p>How do I convert an integral value to a <code>string</code> in C++?</p>
  
  <p>This is what I've tried:</p>
  
  <pre><code>for(size_t i = 0;vecServiceList.size()&gt;i;i++)
  {
      if ( ! vecServiceList[i].empty() )
      {
          string sService = "\t" + i +". "+  vecServiceList[i] ;
      }
  }
  </code></pre>
  
  <p>And here is the error: </p>
  
  <pre><code>invalid operands of types 'const char*' and 'const char [3]' to binary 'operator+'
  </code></pre>