gpt4 book ai didi

c++ - C++ 基类如何知道哪个类派生自它?

转载 作者:塔克拉玛干 更新时间:2023-11-03 08:19:33 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
find out the class type inside the class and its children

我有一个在基类中调用的方法,出现了一个新要求,现在在这个方法中我需要知道它是从哪个子类派生的,你们碰巧知道这是否可能吗?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com