我有一些二维阵列,如:阵列指针到多维数组
int shape1[3][5] = {1,0,0,
1,0,0,
1,0,0,
1,0,0,
1,0,0};
int shape2[3][5] = {0,0,0,
0,0,0,
0,1,1,
1,1,0,
0,1,0};
等。
我该如何制作指向这些指针的数组?
我尝试以下,但他们没有工作
int *shapes[]= {&shape1,&shape2};
int *shapes[]= {shape1,shape2};
int **shapes[]= {&shape1,shape2};
任何帮助:(警告:从兼容的指针类型初始化)?
谢谢,但它仍然yelds相同错误! – pistacchio 2009-04-28 19:16:48
嘿,我犯了一个错字 - 对不起,有关:P – dirkgently 2009-04-28 19:17:31