passing multidimensional arrays to function
<p>I have a method in my class which uses a 3dimensional tfpairexp as input parameter. and I need to use the values in tfpairexp later.</p>

<pre><code>void calctfpairexp (int tf1, int tf2, double tfpairexp[][2][3]) 
{

    int ctr,c;
    for (int j = 0; j &lt; cchips &amp;&amp; (c = chips[j].crepls); j += c)
    {
        int ctrl_no=0;
        for (int *p = chips[j].ctrl ; p &amp;&amp; (ctr=*p)&gt;=0; ++p,ctrl_no++)  {

            for (int k = 0; k &lt; c; ++k)
            {

                tfpairexp[j][ctrl_no][k]=interactionFunc(2,3,1);
            }
        }
    }

}
</code></pre>

<p>I call the method inside the class like this:
<code>calctfpairexp(tf1,tf2,tfpairexp);</code>
and I need to use values inside tfpairexp in next lines.
but the compiler gives error in this line: </p>

<pre><code>`calctfpairexp(tf1,tf2,tfpairexp);`
</code></pre>

<p>It says that it can't find the suitable the suitable funciton for calctfpairexp. any idea?</p>
