网站首页
编程语言
数据库
系统相关
其他分享
编程问答
goodMorning
2024-09-16
C++ 成员函数指针简单测试
classDog{public:voidUpdate_Func(shorti);short(Dog::*pfunc)(short);std::function<short(short)>ffunc;public:shortgoodMorning(shortid);shortgoodAfternoon(shortid);};voidDog::Update_Func(shorti){switch(i)