c++使用指针做出类似C#委托的功能



可以将typedef int(*haitao) (int age1, int age2);这行代码放入stdafx.h文件中,效果是一样的


typedef int(*haitao) (int age1, int age2); 这行代码相当于C#中声明一个委托


FR:海涛高软(hunk Xu)

相关文章:

  • 2021-06-06
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
猜你喜欢
  • 2021-12-14
  • 2021-10-27
  • 2021-08-17
  • 2021-11-07
  • 2021-05-20
  • 2022-02-27
  • 2021-10-31
相关资源
相似解决方案