How come when I run this main.cpp
:
#include <iostream>
#include <typeinfo>
using namespace std;
struct Blah {};
int main() {
cout << typeid(Blah).name() << endl;
return 0;
}
By compiling it with GCC version 4.4.4:
g++ main.cpp
I get this:
4Blah
On Visual C++ 2008, I would get:
struct Blah
Is there a way to make it just print Blah
or struct Blah
?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…