Loop fails during first attempt
<p>I am completing a lab assignment where the user is prompted for the type if fish they wish to order and to enter the price per pound. The user needs to be prompted for the type of fish and the price two times before the report prints.</p>

<p>The problem is that the program ends before the first instance of the loop has completed. (The way the code is written the titles on the report will print twice, but that was in the instructions.)</p>

<p>The code is below and any assistance is greatly appreciated.</p>

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

using namespace std;

int main()
{
        float price;
    string fishType;
    int counter = 0;

    // Change the console's background color.
    system ("color F0");

    while (counter &lt; 3){

    // Collect input from the user.
    cout &lt;&lt; "Enter the type of seafood: ";
    cin &gt;&gt; fishType; // &lt;------ FAILS AT THIS POINT. I GET THE PROMPT AND AT THE                                  "ENTER" IT DISPLAYS THE REPORT

    cout &lt;&lt; "Enter the price per pound using dollars and cents: ";
    cin &gt;&gt; price;

    counter++;
    }

    // Display the report.
    cout &lt;&lt; "          SEAFOOD REPORT\n\n";
    cout &lt;&lt; "TYPE OF               PRICE PER" &lt;&lt; endl;
    cout &lt;&lt; "SEAFOOD                   POUND" &lt;&lt; endl;
    cout &lt;&lt; "-------------------------------" &lt;&lt; endl;
    cout &lt;&lt; fixed &lt;&lt; setprecision(2) &lt;&lt; showpoint&lt;&lt; left &lt;&lt; setw(25) 
        &lt;&lt; fishType &lt;&lt; "$" &lt;&lt; setw(5) &lt;&lt; right &lt;&lt; price &lt;&lt; endl;

    cout &lt;&lt; "\n\n";
    system ("pause");

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