возникла проблема описал переменные в h файле
| Код | @interface pro1ViewController : UIViewController {
char *words[5][5]; //table letters @private NSMutableString *str; }
|
при написании функций в m файле пишет что не объявлена переменная words, почему так???
| Код |
bool IsNearLtr(int h, int w) { bool res = false; if (InField(h+1,w)) res = words[h+1][w]!=""; if (InField(h-1,w)) res = res || words[h-1][w]!=""; if (InField(h,w+1)) res = res || words[h][w+1]!=""; if (InField(h,w-1)) res = res || words[h][w-1]!=""; return res; }
|
|