Toggle navigation
心若天府
Archives
Categories
Tags
About
C++-获取变量类型名
1
2
int
a =
1
;
std
::
cout
<<
typeid
(a).name() <<
":"
<< a <<
std
::
endl
;
./a.out | c++filt -t
参考
http://stackoverflow.com/questions/4465872/why-does-typeid-name-return-weird-characters-using-gcc-and-how-to-make-it-prin
上一页
Archive
下一页
留言
2015-07-01
C++
31
C++
40
▲