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
所有跟帖:
•
回复:help with c++ coding
-Silverbullet-
♂
(288 bytes)
()
05/17/2006 postreply
15:48:36
•
回复:回复:help with c++ coding
-14269-
♀
(143 bytes)
()
05/17/2006 postreply
17:10:21
•
Are all the functions having the same prototype?
-Silverbullet-
♂
(244 bytes)
()
05/17/2006 postreply
19:48:56
•
Yes, function pointer is what you need
-rerre-
♀
(0 bytes)
()
05/18/2006 postreply
12:19:04