[关闭]
@guochy2012 2014-03-11T13:23:25.000000Z 字数 177 阅读 1099

递归

  1. 子问题的性质与父问题类似
    规模有所缩小

  2. 一定要有终止条件

递归容易导致栈

3

  1. struct Array
  2. {
  3. /* data */
  4. int A[M][N];
  5. int m;
  6. int n;
  7. };

4.

  1. int **p = (int**)malloc(10*sizeof(int*));
  2. int i;
  3. for(i = 0; i< 10; ++i)
  4. {
  5. p[i] = (int*)malloc(sizeof(int)*4);
  6. }

5

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注