C++打印变量的类型 int result; std::cout << typeid(result).name(); 打印:int 长风破浪会有时,直挂云帆济沧海! 可通过下方链接找到博主 https://www.cnblogs.com/judes/p/10875138.html