Qt C++判断数据类型

it2024-04-04  61

头文件.h引入:

#include <typeinfo> int i = 1; QString j = typeid(i).name(); qDebug() << j;

输出 “int”

最新回复(0)