Prompting for input too many times also trouble with array output
<p>Alright so my <a href="http://pastebin.com/qx1haD9x" rel="nofollow">assignment</a> wants me to get information on 4 divisions of a company from the user. When I run and compile it it prompts for 8 divisions (like I said, I only want 4), also when it displays the information gathered to the screen it does not show a name for the different divisions. <a href="http://pastebin.com/qX2Vh0df" rel="nofollow">Example</a></p>

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

using namespace std;

const int SIZE = 12;

struct Division
{
      char divName[SIZE]; // Division name
      double sales[4]; // Quarterly sales stored as an array
};



int main()
{
       void Intro();
       std::vector&lt;Division&gt; CreateCorporateFile();
       void DisplayCorporateSales();

       Intro();
       CreateCorporateFile();
       DisplayCorporateSales();


       system("PAUSE");
       return 0;
}

void Intro()
{
     cout&lt;&lt;"This program will prompt you to enter in quarterly sales for "
           "four different\ndivisions of a company.\n\n";
}


std::vector&lt;Division&gt; CreateCorporateFile()
{
    std::vector&lt;Division&gt; divArray;
    Division div;
    int x = 0;
    for(int x = 0; x &lt; 4; x++)
    {
    /*do {*/int quarter = 1;
          cout &lt;&lt; "Enter the name of the division: ";
          cin &gt;&gt; div.divName;
          for(int i = 0; i &lt; 4; i++)
          {
               cout &lt;&lt; "Enter in the sales for quarter "&lt;&lt; quarter &lt;&lt;": ";
               cin &gt;&gt; div.sales[i];
               if(div.sales[i] &gt; 0)
               {
                    quarter++;
               }
               else
               {
                    cout &lt;&lt; "Sales are not allowed to be negative.\n";
               }
          }

        divArray.push_back(div);
        /*x++;
    } while(x &lt; 4);*/
}
    return divArray;
}




void DisplayCorporateSales()
{
     Division div;

         std::vector&lt;Division&gt; divisions = CreateCorporateFile();
    for (size_t i=0; i&lt;divisions.size(); i++)
    {
        cout &lt;&lt; "Here are the quarterly sales for " &lt;&lt; div.divName
        &lt;&lt; ": \n";
        Division div = divisions[i];
        for(int j = 0, quarter = 1; j &lt; 4; ++j, ++quarter)
        {
            cout &lt;&lt; "Quarter "&lt;&lt; quarter &lt;&lt; " sales: $"&lt;&lt; div.sales[j]
            &lt;&lt;"\n";
        }
    }         
}
</code></pre>
