typedef unsigned long int NUM; #include <iostream> using namespace std; NUM x; cout << typeid(x).name();//输出x的类型