Answer the question
In order to leave comments, you need to log in
How to pass a function pointer and store into another function pointer, c++?
class A{
private:
void (* func()); // нужно сюда сохранить функцию, как????
public:
A( void (*_func() ){
func=_func; // ошибка компиляции
// auto f =_func; // работает, значит я не правильный тип выбрал при обьявлениие
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question