此行中可能出现的错误是什么?nearPoint之前的预期初始化程序
const SPoint nearPoints[iloscKierunkow] = {SPoint(0, -1), SPoint(1, 0), SPoint(0, 1), SPoint(-1, 0)};
我的NearPoint
Sorounding代码之前得到
错误预期初始化是
static const int TU_JESTEM = '+'; static const int NIE_BADANY = ' '; static const int ZBADANY = '*'; const int iloscKierunkow = 4; const int SPoint nearPoints[iloscKierunkow] = {SPoint(0, -1), SPoint(1, 0), SPoint(0, 1), SPoint(-1, 0)}; class Punkt { public: int x, y; Punkt(int Nx = 0, int Ny = 0) {//konstruktor x = Nx; y = Ny;
是'SPoint'一些类别处定义? – molbdnilo