【发布时间】:2010-11-08 17:22:39
【问题描述】:
我有一个游戏的头文件,它为棋盘声明了一个二维数组。
#ifndef GAME_H_
#define GAME_H_
static const int columns = 15;
static const int rows = 15;
int board[rows][columns];
#endif /* GAME_H_ */
我收到一个错误“error: variably modified 'board' at file scope”。
【问题讨论】: