C++ program runs but doesn't let the user enter all the information
<p>This is a program that I have been working on. I am just starting out in programming, so I am just trying to write simple programs for now. The ones I have done have worked great till this one. The program will run but it doesn't let the user enter all the information. I am not sure why. If someone could please help me understand. Here is the code: </p>

<pre><code>#include "stdafx.h"
#include &lt;iostream&gt;
#include &lt;iomanip&gt;
using namespace std;

int main ()
{
    double salary = 0.0;
    double wages = 0.0;
    float employee = 0;
    int hours;
    double total = 0.0;

    cout &lt;&lt; "Please enter an employee name or -1 to quit";
    cin &gt;&gt; employee; 

    cout &lt;&lt; "Please enter the employee wages: $" &lt;&lt; endl;
    cin &gt;&gt; wages;

    cout &lt;&lt; "Please enter how many hours the employee worked" &lt;&lt; endl;
    cin &gt;&gt; hours;

    wages * hours == salary;

    cout &lt;&lt; "The employee total earnings is $" &lt;&lt; total &lt;&lt; endl;

    cout &lt;&lt; "Please enter an employee name or -1 to quit";

    system("pause");

    return 0;
}
</code></pre>

<p>Thanks again for your time and help. </p>

<p>Here are the changes I have made but it's still not running right.</p>

<pre><code>#include "stdafx.h"
#include &lt;iostream&gt;
#include &lt;iomanip&gt;
using namespace std;

int main ()
{
    double salary = 0.0;
    double wages = 0.0;
    float employee = 0;
    int hours;
    double total = 0.0;

    cout &lt;&lt; "Please enter an employee name or -1 to quit";
    cin &gt;&gt; employee; 

    cout &lt;&lt; "Please enter the employee wages: $" &lt;&lt; endl;
    cin &gt;&gt; wages;

    cout &lt;&lt; "Please enter how many hours the employee worked" &lt;&lt; endl;
    cin &gt;&gt; hours;

    salary = wages * hours;

    cout &lt;&lt; "The employee total earnings is $" &lt;&lt; total &lt;&lt; endl;

    cout &lt;&lt; "Please enter an employee name or -1 to quit";
    cin &gt;&gt; employee;

    system("pause");

    return 0;
}
</code></pre>
