Call a function defined from another function c++
<p>I will like to know, how to make a function where I define a function. And then I can call the defined function. Let me try with a example.</p>

<pre><code>void funcToCall() {
    std::cout&lt;&lt;"Hello World"&lt;&lt;std::endl;
}

void setFuncToCall(void func) {
    //Define some variable with func
}

void testFuncCall() {
    //Call function that has been defined in the setFuncToCall
}

setFuncToCall(funcToCall()); //Set function to call
testFuncCall(); //Call the function that has been defined
</code></pre>

<p>I Hope that you understand what I am trying to do here. But I don't know how to bring It down to the right code :-)</p>
