请帮忙看看C#二维数组定义对不对
我想定义一个8行8列的二维数组,同时初始化。这样写对不对?主要是new double[8,8]这里写了8对不对?
static double[,] block_freq=new double[8,8]{{0,1,1,2,2,2,2,3},
{1,1,2,3,3,3,3,3},
{1,2,2,3,3,3,3,3},
{2,3,3,2,3,3,3,3},
{2,3,3,3,3,3,3,3},
{2,3,3,3,3,3,3,3},
{2,3,3,3,3,3,3,3},
{3,3,3,3,3,3,3,3}};