cin.get() not working?
<p>I'm using C++ for the first time from php. I was playing around with some code. To my understanding cin.get() was suppose to stop the page from closing until I press a key, however it doesn't seem to be working because of the code before it, I don't know what the problem is. Here is my code:</p>

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

using namespace std;

int multiply (int x, int y);

int main ()
{
    int x;
    int y;

    cout &lt;&lt; "Please enter two integers: ";
    cin &gt;&gt; x &gt;&gt; y;

    int total = multiply(x, y);
    cout &lt;&lt; total;

    cin.get();
}

int multiply (int x, int y) {
    return x*y;
}
</code></pre>
