Home >Backend Development >PHP Tutorial > 相关数组中第二维的索引值疑问?

相关数组中第二维的索引值疑问?

WBOY
WBOYOriginal
2016-06-13 12:38:22935browse

有关数组中第二维的索引值疑问??
问一个弱弱的问题
比如有上下两列图片,没列有三个大小相同的图片,我想问上列当中第二个图片对象的第一维索引值和第二维索引值是什么?

因为连连看游戏代码中看到如下两端代码,有点不清楚数组方面的基础知识。

// 该对象在Piece[][]数组中第一维的索引值
private int indexX;
// 该对象在Piece[][]数组中第二维的索引值
private int indexY;

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn