help with c++ coding

If I have a string which contains a function name, how do I make a call to the function?

string func_name="myfunction"; // how do I call myfunction() using func_name?

所有跟帖: 

回复:help with c++ coding -Silverbullet- 给 Silverbullet 发送悄悄话 (288 bytes) () 05/17/2006 postreply 15:48:36

回复:回复:help with c++ coding -14269- 给 14269 发送悄悄话 (143 bytes) () 05/17/2006 postreply 17:10:21

Are all the functions having the same prototype? -Silverbullet- 给 Silverbullet 发送悄悄话 (244 bytes) () 05/17/2006 postreply 19:48:56

Yes, function pointer is what you need -rerre- 给 rerre 发送悄悄话 (0 bytes) () 05/18/2006 postreply 12:19:04

请您先登陆,再发跟帖!