Article View: att.lang.c++
Article #247Typeinfo.h
From: bastards
Date: Wed, 29 Jan 1997 00:00
Date: Wed, 29 Jan 1997 00:00
24 lines
1050 bytes
1050 bytes
Hi! I would like to know if there is a file that come with borland C++ 3.1
named "typeinfo.h". It is used in a book that i'm currently reading and it
is supposed to return the type of an object. The statement look like that:
#include <typeinfo.h>
class test{
};
test a;
test *ptr;
ptr = &a;
printf("Pointer : %s\n",typeid(*ptr).name());
--------------
But i'm not able to find this file ... how could I resolve my problem...
--
Dziablo@lords.com
Technical Details
Message-ID:
<01bc0d90$a28f8e20$64cf60cf@pboucher.videotron.ca>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,de6da79e16bc71b4,start X-Google-Attributes: gid109fba,public X-Google-Thread: 10d4ba,de6da79e16bc71b4,start X-Google-Attributes: gid10d4ba,public X-Google-Thread: 108b44,de6da79e16bc71b4,start X-Google-Attributes: gid108b44,public From: "bastards" <bastards@ntic.qc.ca> Subject: Typeinfo.h Date: 1997/01/29 Message-ID: <01bc0d90$a28f8e20$64cf60cf@pboucher.videotron.ca> X-Deja-AN: 212874306 organization: The Happy Greloze Team newsgroups: att.lang.c++,comp.lang.c++,comp.sys.lang.c++