title: Passing 2D-Array to a function C++
body: <p>I would like to pass a series of 2D-arrays to a function, which then saves it to a file. My "saving function" is as follows: (Question marks indicate I don't know what the hell I am doing.)</p>
  
  <pre><code>void saveArray(double* z(?),double* u1(?),double* u2 (?),double* theta (?), int row, 
  int column)
  {
  ofstream output("data.csv");
  for(int j=0;j&lt;row;++j)
  for(int i=0;i&lt;column;i++)
  {
  output&lt;&lt;setprecision(32)&lt;&lt;z[j]&lt;&lt;","&lt;&lt;setprecision(32)&lt;&lt;u1[j][i]&lt;&lt;","
  &lt;&lt;setprecision(32)
  &lt;&lt;u2[j][i] &lt;&lt;","&lt;&lt;setprecision(32)&lt;&lt;theta[j][i]&lt;&lt;endl;
  }
  </code></pre>
  
  <p>z is : z[30000],u1,u2 and theta are [101][30000] 2D-arrays.</p>
  
  <p>Please let me know if this is confusing and I can post the entire code.</p>