nested for loop in a function array : <p>I am working on a c++ homework assignment for arrays and functions, and this is what I have so far and am not even sure if I am on the right path or not. These are the exact instructions.. </p>

<p><em>Write a program to ask the user to enter a total of N numbers which you will store in main local array of Define N as a constant int and initialize it to 6. You will write the following functions:
FillArray( ) – accepts two inputs: (1) the array. (2) the array size. Returns nothing.
•   Prompts the user to enter N elements (N =  the array size and the variables you pass should have been defined as a constant int in main( )
•   Use a for loop to enter and store the value of each element in the array</em></p>

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

using namespace std;

int main(){
cout &lt;&lt; "Enter 6 numbers for the array:" &lt;&lt; endl; 

FillArray();

return 0;

}

void FillArray(){

int n;
int array[6] = { 0, 0, 0, 0, 0, 0,};
void fillarray(const int n[], int size);


for (; n &gt; 6; n++) 
    cin &gt;&gt; array[n];
cout &lt;&lt; "Thank you\n";


}
</code></pre>

<p>Any suggestions or help would be appreciated.. thank you!</p>
