求助各位C++大神

ashuai520 ashuai520 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
在 a.h 中
class VirturalThread
{
public:
void KillRobot();
};
在b.h 中
class ThreadClient
{
public:
void KillThread();
VirturalThread* pTest;
};
void TheadClient::KillThread()
{
pTest->KillRobot();
}


如何能够使用ThreadClient* pThread直接访问KillRobot()
即如何实现pThread->KillRobot();
...全文
评论 9
收藏 已收藏
分享
返回顶部
ashuai520
C++ Builder 13,871 成员 102,696 内容