title: how to use function as variable c++
body: <p>I want to create somekind of event system in c++ for my needs</p>
  
  <p>I know that you can use fuction as other function parameter</p>
  
  <p>May be i missed something(But in c# you can do it with events handlers)</p>