title: itoa to std::to_string
body: <p>This may be a vaugue question but im getting this error </p>
  
  <pre><code>Simulator.cpp: In member function `void Simulator::generatePassengers()': 
  Simulator.cpp:60: error: `itoa' undeclared (first use this function) 
  </code></pre>
  
  <p>This is the code im having an issue with</p>
  
  <p><code>itoa(i,buf,10);</code></p>
  
  <p>What can i use to fix this issue because on one compiler i get this issue on another i dont. So im stumped here has to work on both.</p>
  
  <pre><code>    char buf[3];
      if(i&lt;10)
      {
          key1.append("0");
          key2.append("0");
          key3.append("0");
      }
      itoa(i,buf,10);
      key1.append(buf);
      key2.append(buf);
      key3.append(buf);
  </code></pre>