C++求助: New/Delete in Multidimensioned array# Programming - 葵花宝典
j*o
1 楼
我有以下一段程序,编译没问题,但在运行时有错误,想请高手们帮忙看看。
const int totalnumber = 5;
const int num_f = 3;
double (*v)[totalnumber];
v = new double[num_f][totalnumber];
......
delete [] v;
请问是不是最后一行的问题?该怎么改正?多谢多谢!!!
const int totalnumber = 5;
const int num_f = 3;
double (*v)[totalnumber];
v = new double[num_f][totalnumber];
......
delete [] v;
请问是不是最后一行的问题?该怎么改正?多谢多谢!!!