float* coef_demod_fir = (float*)malloc(sizeof(float) * para_demod_fir);
1、为coef_demod_fir分配内存空间
2、sizeof(float) * para_demod_fir为所需开辟空间的字节个数
3、要包含# include <malloc.h>
4、使用完之后要释放free(coef_do_fir);
float* coef_do_fir = new float[para_do_fir];
使用完之后要 delete [] coef_do_fir;
或者:
float* coef_do_fir ;
coef_do_fir = new float[para_do_fir];
delete coef_do_fir;