1条回答 默认 最新
threenewbee 2019-12-14 12:20关注#include <iostream> using namespace std; class TestClass { public: void Test(int k) { cout << "Test:" << k << endl; } }; int main() { TestClass ts; void (TestClass::*p)(int) = &TestClass::Test; (ts.*p)(1); return 0; }问题解决的话,请点下采纳
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报

