title: Visual C++ argv question
body: <p>I'm having some trouble with Visual Studio 2008. Very simple program: printing strings that are sent in as arguments.</p>
  
  <p>Why does this:</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int _tmain(int argc, char* argv[])
  {
      for (int c = 0; c &lt; argc; c++)
      {
          cout &lt;&lt; argv[c] &lt;&lt; " ";
      }
  }
  </code></pre>
  
  <p>For these arguments:</p>
  
  <pre><code>program.exe testing one two three
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>p t o t t
  </code></pre>
  
  <p>?</p>
  
  <p>I tried doing this with gcc instead and then I got the whole strings.</p>