Home > Back-end >  C/C can't through the string name of the transfer function of dynamic call the specified functi
C/C can't through the string name of the transfer function of dynamic call the specified functi

Time:04-04

C/C + + is there a can by passing in a string variable to a function called method?

CodePudding user response:

Function pointer, the function of the first address is stored in a function pointer variable, through this function we will be able to call to a function pointer variable.

CodePudding user response:

https://blog.csdn.net/op101/article/details/113658422C++ by type string name for the type of object - registration mechanism
  • Related