title: '.' is not recognized as an internal or external command
body: <p>I just started learning C++, and I've been trying to run my program from the command line using:</p>
  
  <pre><code>g++ helloworld.cpp
  </code></pre>
  
  <p>which works, then I typed</p>
  
  <pre><code>./a.out
  </code></pre>
  
  <p>then it returns the error '.' is not recognized as an internal or external command. 
  I tried doing <code>a.out</code>, but it returns: </p>
  
  <blockquote>
    <p>'a.out' is not recognized as an internal or external command. </p>
  </blockquote>
  
  <p>I'm pretty new to the command line so it might be quite a novice problem. I'm using the gnu gcc compiler. My code is just a simple code for printing "helloworld", and it doesn't seem to be a problem with the code since the line <code>g++ helloworld.cpp</code> doesn't throw up any error. Just to add, I'm using windows 8. </p>