C++打印变量的类型

int result;
std::cout << typeid(result).name();

打印:int

posted @ 2020-09-05 00:58  朱小勇  阅读(5275)  评论(0编辑  收藏  举报