📜  c++ xy in arrau 1d - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:51.716000             🧑  作者: Mango

代码示例1
for(int y = 0; y < rows; y++)
{
    for(int x = 0; x < cols; x++)
    {
        int point = grid[y * rows + x];
    }
}