当前位置: 代码迷 >> 综合 >> 获取类实例的类名(c++)
  详细解决方案

获取类实例的类名(c++)

热度:54   发布时间:2024-01-19 06:40:19.0
#include <typeinfo.h>std::string getClassName() {return typeid(*this).name();
}

 

  相关解决方案