查看typedef类型

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