C++: new empty project (how to create it, add main method and print "Hello, world")?
<p>Well, my program doesn't execute what I want it to. 
A project from the scratch.
Visual Studio 2010.</p>

<p>This is my code:</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;

int main()
{
    cout &lt;&lt; "Hello, world";
    system("pause");
    return 0;
}
</code></pre>

<p>Why the program doesn't print "Hello, world"? And why it doesn't react to the breakpoint?
What shall I do to get what I want? </p>

<ol>
<li>I create a new project.</li>
<li>I unmark Precompiled header and mark Empty <a href="https://skydrive.live.com/redir?resid=8CDFFBA921B002FE!133&amp;authkey=!AE9hR4-y4OtqC2c" rel="nofollow">project</a>.</li>
<li>I add a new item as a cpp file.</li>
<li>I type my main <a href="https://skydrive.live.com/redir?resid=8CDFFBA921B002FE!136&amp;authkey=!AFLOttZldVnfjas" rel="nofollow">method</a>. And get an error. LNK1120: unresolved externals. As far as I can understand from googling, this mean that the compiler sees that I use a main method but somehow it doesn't know in which file this method is. </li>
<li>I click the right button on my project and add the very file I have just created. </li>
<li>I exit VS. And launch it again. It starts compiling but the result is just a flash of black screen.</li>
<li>I add a new breakpoint. Just in the middle of the module. The program doesn't react to it at all. So, it just ends.</li>
</ol>

<p>LATER ADDED:</p>

<p>Thank you all who tried to help.
After flushing the cout Hello, world works.</p>

<p>But! I can't proceed. </p>

<p>Please, have a look at the code.
I replaced "Hello, world" with another piece of code.
But it starts telling me off because of ';'.
error C2059: syntax error : ';'
Is it a strange behaviour of the compiler or I'm goofy?</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;

void menu()
{
    do
    {   
        system("cls");
        cout &lt;&lt; "Input a point." &lt;&lt; endl;
        cout &lt;&lt; "id: " &lt;&lt; endl;
        cout &lt;&lt; "x: " &lt;&lt; endl;
        cout &lt;&lt; "y: " &lt;&lt; endl&lt;&lt;;
        cout &lt;&lt; "r: - Return." &lt;&lt; endl; 

        system("pause");
    } while (true);

}

int main()
{   
    menu();
    system("pause");
    return 0;
}
</code></pre>
