#include #include class myclass { }; void main() { int a, b; char c; myclass ob1; printf("%s %s %s\n", typeid(a).name(), typeid(b).name() , typeid(c).name()); printf("%s\n", typeid(ob1).name()); bool isTrue = ( typeid(a) == typeid(b) ); // true } 컴파일 옵션에는 Enable Run-time type information (런타임 형식 정보 사용) 이 체크되어 있어야 함. 자세한 사항은 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang/..