title: How to concatenate command line arguments with separator
body: <p>I read from argv the arguments and i want to put them into only one string.
  For example if the arguments are : <code>man</code> <code>ls</code> <code>-la</code>, then i want to get command string  <code>"man ls -la"</code> in one string</p>
  
  <p>Here is what i currently have:</p>
  
  <pre><code>#include &lt;string&gt;
  int main(int argc, char**argv) { 
  
      string command;
      for (int i = 1; i&lt;argv; i++) {
          command += argv[i]; 
      }
  
      my_function(command); 
  }
  </code></pre>
  
  <p><code>command</code> should contain all the arguments separate by a space:</p>
  
  <p>Is this correct ?</p>
  
  <p>I also have a compiler error:</p>
  
  <blockquote>
    <p>error C2446: '&lt;': no conversion from 'char **' to 'int'</p>
  </blockquote>
  
  <p>Where is this error coming from?</p>