calling a function and passing it values in a struct
<p>so i have this structure:</p>

<pre><code>// Structure used to define a point (x,y) in the grid.
typedef struct
{
    int x, y;
} Point;
</code></pre>

<p>and this function </p>

<pre><code>Sequence getSequence(int grid[][MAXCOLS], Point startPos)
{
    // Create an empty sequence
    Sequence emptySeq;
    emptySeq.size = 0;

    // Use the empty sequence to start the recursive function
    return generateSeq(grid, startPos, emptySeq);
}
</code></pre>

<p>i do not know the position where the sequence begins. so i have too call on the getSequence function 16 times in main, so that you can pass each of the 16 grid positions to it as possible starting positions.</p>

<p>i've tried this but it didnt work.</p>

<pre><code>getSequence(grid, x.0, y.0 );
</code></pre>

<p>can someone please show me how to call on the getSequence in main. Im new to programing</p>

<p>Thanks</p>
