我想在C++中向一个函数传递一个二维数组的引用。我知道两个维度的大小是在编译时确定的。这是我目前的代码:
const int board_width = 80;
const int board_height = 80;
void do_something(int[board_width][board_height]& array); //function prototype
但是这样不起作用。我从g++得到了以下错误:
error: expected ‘,’ or ‘...’ before ‘*’ token
这个错误是什么意思,我该如何修复它?