Hello to all. I have a problem for initialize an Array multidimensiona l, therefore I have seen from the forum, but it does not work correctly. An Array of 1024 allocations for 2 channels would serve me (left and rigth). that is:
double A [1024] [2];
myClass ()
{
public:
myClass()
{
s = 1024;
A = new double*[s];
for (int i=0;i<s;i++)
A[i]=new double[2];
}
private:
unsigned long s;
double **A;
}
Sbaglio qualche cosa?
Grazie ciao.
double A [1024] [2];
myClass ()
{
public:
myClass()
{
s = 1024;
A = new double*[s];
for (int i=0;i<s;i++)
A[i]=new double[2];
}
private:
unsigned long s;
double **A;
}
Sbaglio qualche cosa?
Grazie ciao.
Comment