how can i get the dValues[]? on line double dValues[] = {what should i input here?} coz im using an array.. to get the mode
<pre><code>#include &lt;iostream&gt;
#include &lt;vector&gt;
#include &lt;numeric&gt;

using namespace std;

double GetMode(double daArray[], int iSize) {
// Allocate an int array of the same size to hold the
// repetition count
int* ipRepetition = new int[iSize];
for (int i = 0; i &lt; iSize; ++i) {
    ipRepetition[i] = 0;
    int j = 0;
    bool bFound = false;
    while ((j &lt; i) &amp;&amp; (daArray[i] != daArray[j])) {
        if (daArray[i] != daArray[j]) {
            ++j;
        }
    }
    ++(ipRepetition[j]);
}
int iMaxRepeat = 0;
for (int i = 1; i &lt; iSize; ++i) {
    if (ipRepetition[i] &gt; ipRepetition[iMaxRepeat]) {
        iMaxRepeat = i;
    }
}
delete [] ipRepetition;
return daArray[iMaxRepeat];
}


int main()  
{
int count, minusElements; 
float newcount, twocount;
cout &lt;&lt; "Enter Elements:";
std::cin &gt;&gt; count;
std::vector&lt;float&gt; number(count);




cout &lt;&lt; "Enter " &lt;&lt; count &lt;&lt; " number:\n";
for(int i=0; i&lt; count ;i++)  
{
   std::cin &gt;&gt; number[i];
}

double dValues[] = {};
int iArraySize = count;

std::cout &lt;&lt; "Mode = "
            &lt;&lt; GetMode(dValues, iArraySize) &lt;&lt; std::endl;
</code></pre>
