title: error: invalid conversion from ‘int’ to ‘const char*’
body: <p>I have a C++ Program:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main (){
      char x [10] = "abc";
      system (sprintf ("mkdir ", "%s", x));    //error happens here, can't 
                                               //convert int to const char*
      return 0;
  }
  </code></pre>
  
  <p>results in:</p>
  
  <pre><code>sys.c:8:37: error: invalid conversion from ‘int’ to ‘const char*’
  </code></pre>
  
  <p>Where am I converting an int to a char?</p>