Написал такую лабуду
======================
class test {
int i;
public:
test(int i);
~test() {}
void init(int);
int func1(int);
int func2(int);
int (*func[])(int);
};
void
test::init(int i) {
this->i = i;
func[0] = &test::func1;
func[1] = &test::func2;
}
test::test(int i) { init(i); }
int test::func1(int c) { puts("1"); }
int test::func2(int c) { puts("2"); }
main()
{
test *X = new test(5);
}
//#EOF
А она сволочь ругается
======================
dimfunc.c: In method `void test::init(int)':
dimfunc.c:19: converting from `int (test::*)(int)' to `int (*)(int)'
dimfunc.c:20: converting from `int (test::*)(int)' to `int (*)(int)'
====================
Как объявить-то, бля?