Storing a pointer to a function?

Well, I don't know if this is possible, but I need to create an Array of pointers, those pointers need to be some functions that are outside the class, and I need to call those functions inside the class .

class::NClass
{

    virtual void AssignFunction(byte A,void (*B)()) {FN[A] = (*B);}
    

    void *FN[16];

}

void CallFunction(byte n) {

   (*FN[n])();

}

this is what I came with, But I don't really have idea.

Well, I don't know if this is possible, but I need to create an Array of pointers, those pointers need to be some functions that are outside the class, and I need to call those functions inside the class .

That is possible.

class::NClass

What is this? It isn't a constructor, since the method name doesn't match the class name. Therefore, it MUST have a return type.

    void *FN[16];

Local variables in the constructor are pretty useless.

    virtual void AssignFunction(byte A,void (*B)()) {FN[A] = (*B);}

Why is this prototype in the implementation file? You certainly can't assign anything to FN before you declare FN.

They contain the same thing.

    virtual void AssignFunction(byte A,void (*B)()) {FN[A] = (*B);}

You have an implementation file. Implement this function THERE.

The parentheses around the *B are not needed. The * is wrong. B is a pointer to a function. FN[A] expects to be assigned a pointer to a function.

Pulsadores::Pulsadores(byte NB, int *PinArray)
{
    int i = -1;
    
    _NB = NB;
    _PA = PinArray;
    _DT = 25000;
    for(i=-1;i<_NB;i++){
        pinMode(*(_PA+i),INPUT_PULLUP);

Do NOT diddle with the hardware (pinMode() does that) in the constructor. The hardware is not ready to be diddled with.

What is wrong, in the appropriate method, with:

   pinMode(_PA[i], INPUT_PULLUP);

?

Where do you actually try to use the values in FN? Where do you actually call AssignFunction()?

What do I need to de to call those functions from the Pulsadores.cpp File?

You would need to call AssignFunction() to assign a pointer to a function to FN[A], where you define what A is when calling AssignFunction().

Then, in some method in the Pulsadores class, you simply call the appropriate function. To call the ith function:

     FN[i]();