c++中最大能new出来的矩阵大小
来源:互联网 发布:学历网络教育报考时间 编辑:程序博客网 时间:2024/04/30 04:07
直接上代码把,我发现10000*10000的double型矩阵还可以,但是15000*15000就基本挂掉了
#include<iostream>using namespace std;
int main()
{
int allNumber = 10000;
for(int k=0;k<10;k++)
{
double **second_Order_Assignment_Matrix = new double *[allNumber];
for(int i=0;i<allNumber;i++)
{
second_Order_Assignment_Matrix[i] = new double[allNumber];
}
// //first-order assignment matrix is expansed by cols. The cols are model points and the rows are the potential detected key points
for (int i = 0; i < allNumber; i++)
{
for(int j=0;j<allNumber;j++)
{
second_Order_Assignment_Matrix[i][j] = 0;
}
}
for (int i = 0; i < allNumber; i++)
{
delete [] second_Order_Assignment_Matrix[i]; // This is right
}
// error
// delete [] second_Order_Assignment_Matrix // This is only to release the second_Order_Assignment_Matrix[0] memory
cout<<"Succeed for new and delete the predefined memory!"<<endl;
}
return 0;
}
- c++中最大能new出来的矩阵大小
- C/C++数组的大小最大能有多大?
- UDP中一个包的大小最大能多大
- UDP中一个包的大小最大能多大
- 【算法】最大矩阵的大小
- 求最大子矩阵的大小 + 栈
- 求最大矩阵的大小-------------->_<
- 求最大子矩阵的大小
- 求最大子矩阵的大小
- 最大子矩阵(限制矩阵的大小)
- WindowAdapter抽象类为什么能new出来?
- 求一个只包含0、1的矩阵中只包含1的最大子矩阵大小
- 矩阵中最大的二维矩阵
- [c++]机器能表示的最大整数
- 一个矩阵中最大的二维矩阵(元素和最大)
- C++中使用引用来访问new出来的内存
- 在Activity中设置new出来的TextView属性
- 如何delete vector中new出来的内存
- poj1004---Financial Management
- 10个比Visio更好的流程图制作软件
- linux系统编程之基础必备(一):计算机体系结构一点基础知识
- 关于HttpServletRequest的方法的使用
- raspberry GPIO控制第一步
- c++中最大能new出来的矩阵大小
- 通过DataTable导出Excel
- 【11】Delete a node in the middle of a single linked list
- mfc工具条上简单添加下拉框
- 请求发送者与接收者解耦——命令模式(四)
- 第18天的交易(2013-4-15)(+100) (2763.4) (疯狂的一天)
- POJ 并查集 题目汇总 ——czyuan原创
- C++易忽略点学习递归函数的调用超清晰分析(二)
- hdu 1711 (Number Sequence)