title: How do I compile and run my c++ code at the same time in VS - Code (Windows)
body: <p>I'm using windows 10 ming g++ compiler. When I was using macOS for compile and run at the same time I use the command.</p>
  <pre><code>g++ name.cpp &amp;&amp; ./a.out
  </code></pre>
  <p>It worked but when I tried to use this in windows</p>
  <pre><code>g++ name.cpp &amp;&amp; ./exe
  </code></pre>
  <p>it didn't work it shows an error message (The token '&amp;&amp;' is not a valid statement separator in this version).</p>
  <p>So i use <code>g++ name.cpp</code></p>
  <pre><code>./a.exe
  </code></pre>
  <p>but i want to run in  a single line command.</p>