title: How to call a memberfunction by pointer
body: <p>currently I try to implement a small State-Action-Matrix.
  I got a table which holds information about my current state from which the program is to transition to a new follow state.</p>
  
  <p>In the progress of transitioning from one state to another state, the program is supposed to call a specific memberfunction.</p>
  
  <p>
  Example of the Transitiontable:</p>
  
  <pre class="lang-cpp prettyprint-override"><code>typedef struct
  {
      int state;
      int followState;
      /* POINTER TO MEMBERFUNCTION */
  }STATE_TRANSITION;
  
  
  STATE_TRANSITION stateTransition[] =
  {
      { state1, state2, /* ... */ },
      /* ... */
  };
  </code></pre>
  
  <p>The Memeberfunctions which are to be called from this Table are located in a class.</p>
  
  <pre class="lang-cpp prettyprint-override"><code>class A
  {
  public:
      int foo(int);
  };
  </code></pre>
  
  <p>My Problem now ist, how do I call for an example the Memeberfunction 'foo' and pass arguments to it?</p>
  
  <p>Any help would be appiciated, thank you very much.</p>