下面这段code,用VB怎么做啊?谢谢.
int i;
int N,M;
double **X;
double **A;
X = (double **)malloc((size_t)(sizeof(double *) * M));
X[0] = (double *)malloc((size_t)(sizeof(double) * M * N));
A = (double **)malloc((size_t)(sizeof(double *) * M));
A[0] = (double *)malloc((size_t)(sizeof(double) * M * M));
for(i = 1; i < M; i++) {
X[i] = X[i - 1] + N;
A[i] = A[i - 1] + M;
}