摘要: 测试平台:VS2008新建工程-添加源文件和头文件main函数#include<iostream>#include"callumfpack.h"using namespace std;//int print(int **A)int main(){ //int A[2][2]={0}; //printf("%d ",A[1][1]); /*int **A=new int *[2]; for(int i=0;i<2;i++) A[i]=new int [2]; for(int i=0;i<2;i++) for(int j=0;j< 阅读全文
posted @ 2013-02-26 23:20 liang_l 阅读(1212) 评论(0) 推荐(0) 编辑
摘要: int main(){ int n=3;int m=3; int **A=new int *[n]; for(int i=0;i<n;i++) A[i]=new int [m];//动态生成矩阵A com( A ); //调用函数com return 0;}int com(int **A){ printf("%d\n",A[2][2]);return 0;} 通过上面几条核心代码实现二维数组的传递 阅读全文
posted @ 2013-02-26 23:01 liang_l 阅读(2084) 评论(0) 推荐(0) 编辑