此行中可能出現的錯誤是什麼?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