急!帮帮忙
像C语言里面这样的句子
float *x0=(float*)calloc(n,sizeof(float)); 申请了指针x0指向的空间
float *xh=(float*)calloc(n,sizeof(float));
float *xr=(float*)calloc(n,sizeof(float));
float *fxk=(float*)calloc(k,sizeof(float));
float *g=(float*)calloc(kg,sizeof(float));
要写成VB语句是怎么样的?
[解决办法]
dim x0() as single
ReDim x0(n-1)'x0(0 to n-1)共n个
[解决办法]
一楼正解.
VB没有申请内存的方法,只能通过动态数组来模仿,只要数据类型的占位长度一样就可以.