显示C++数据的数据类型 #include <typeinfo> using namespace std; ... cout << typeid(d).name() << endl; 其中,d指"数据"