typedef unsigned long int NUM;
#include <iostream>
using namespace std;
NUM x;
cout << typeid(x).name();//输出x的类型
typedef unsigned long int NUM;
#include <iostream>
using namespace std;
NUM x;
cout << typeid(x).name();//输出x的类型
转载于:https://www.cnblogs.com/xiaochi/p/5093977.html