显示C++数据的数据类型

#include <typeinfo>

using namespace std;

...

cout << typeid(d).name() << endl;

其中,d指"数据"

原文地址:https://www.cnblogs.com/lion-zheng/p/8468892.html