#include <typeinfo> int iii = 100; printf("%s\n",typeid(iii).name());//类型 详见:http://www.cnblogs.com/SZxiaochun/p/7691574.html 转载于:https://www.cnblogs.com/SZxiaochun/p/7692636.html