C++ 运行时类型识别 知道实例父类类型,显示出子类类型

typeid(nets_[i]).name()
其中的
nets_[i]是一个对象

原文地址:https://www.cnblogs.com/baldermurphy/p/6055513.html