在类中定义int **footprint 后 用 M->footprint[pos.x][pos.y]=1

问题描述:

在类中定义int **footprint 后 用 M->footprint[pos.x][pos.y]=1
函数为FootPrint(MazeType *M,PosType pos)
PostType 中包括
int x,int y,
MazeType的定义为
char **maze;
\x09\x09int **footprint;
\x09\x09int row;
\x09\x09int column;
1个回答 分类:综合 2014-09-25

问题解答:

我来补答
footprint是个二维数组对应的二重指针,你可以把它当做二维数组来用,这里M是指向mazeType类型的指针,所以给对应这个类型的结构中的footprint变量的行下标为pos.x,列下标为pos.y的元素赋值为1.
 
 
展开全文阅读
剩余:2000
上一页:这一步看不懂
下一页:这题详细解释