root/week1oplossing/functionpointer.cpp
#include "functionpointer.h"
functionpointertest::functionpointertest(Week1Oplossing *parentptr):mParentPtr(parentptr)
{
}
functionpointertest::~functionpointertest()
{
}
void functionpointertest::setfunction(fpfunction f)
{
test = f;
(mParentPtr->*test)(1);
} |