title: Trying to figure out an alternative method for switch statements
body: <p>I am currently trying to figure out an alternative method for switch statements as the program I have the switch statements are getting really long and confusing. Therefore I thought it would be a good idea to use array of pointers to functions. I am using c++ and qt. But when I try and implement, I am getting the following error. </p>
  
  <p><code>cannot convert 'CheckPl::comA' from type 'void (CheckPl::)()' to type 'void (*)()'</code></p>
  
  <p>It would be much appreciated if someone would help me out with this or at least point me to correct direction. </p>