摘要: //以int为例,以10*20的二维数组为例#define nrow 10#define ncol 20void test1(int (*a)[ncol]){ cout << a[6][6]<<endl;}void test2(int a[][ncol]){ cout << a[6][6]<<endl;}void test3(int **a){ cout << a[6][6]<<endl;}int main(){ int (*a)[ncol] = (int (*)[ncol])malloc(nrow * sizeof(*a 阅读全文
posted @ 2011-09-16 11:58 大豆熊 阅读(347) 评论(0) 推荐(0)