int N; double ** A; A = new double*[N] for ( i = 0; i < N; i++) A[i] = new double[N];
Always free space when you don't need an array anymore.
for ( i = 0; i < N; i++) delete[] A[i]; delete[] A;