C++ in VSCode - Getting Started
<p>I'm having trouble getting a simple C++ script to run in VSCode (I'm new to both). I followed <a href="https://stackoverflow.com/questions/30269449/how-do-i-set-up-vscode-to-compile-c-code">these</a> instructions, and the status bar displays "C++" on the bottom right of the screen, next to the smiley face. I then ran the following script:</p>

<pre><code>#include &lt;iostream&gt;

using namespace std;

main()
{
    cout &lt;&lt; "Hello World!\n";
    return 0;
}
</code></pre>

<p>When I run it, the script's path flashes on the output screen and disappears. I expected it to display "Hello World" in the output. </p>

<p>I can run the script from the command window (I'm in Ubuntu) and the output file behaves as expected when executed.</p>