declaring in an header a dinamically allocated 2 dimensional array without knowing its dimensions
<p>I need to declare in an header a dinamically allocated 2 dimensional array without knowing its dimensions, which will be established inside a functions. </p>

<p>in the header I want to place:</p>

<pre><code>#define MAX_BARS_ALLOWED 20000
extern int Gregorian[][MAX_LINES_ALLOWED];  it works
</code></pre>

<p>and in the cpp file, inside a function:</p>

<pre><code>int **Gregorian=new int*[NumLastItem+1][MAX_LINES_ALLOWED];  this does NOT work, why ?
</code></pre>

<p>... and since I initialize it inside a function, will it be really global.
Can anyone tech me the <strong>correct</strong> way to do this ? Thank you in advance !!</p>
