深海烟花

导航

2016年12月9日

variably modified 'dist' at file scope|

摘要: 转自:http://blog.csdn.net/wusuopubupt/article/details/18408227 错误原因: The reason for this warning is that const in c doesn't mean constant. It means "rea 阅读全文

posted @ 2016-12-09 11:38 深海烟花 阅读(235) 评论(0) 推荐(0) 编辑

C/C++二维数组分配内存

摘要: //C++方式 double **Q=new double*[row]; //初始化Q矩阵 for(int i=0;i<row;++i) Q[i]=new double[POS_NUM](); int **Path=new int*[row]; //初始化Path矩阵 for(int i=0;i<r 阅读全文

posted @ 2016-12-09 11:22 深海烟花 阅读(337) 评论(0) 推荐(0) 编辑