| delorie.com/archives/browse.cgi | search |
| From: | Alex Vinokur <alexvn AT bigfoot DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | typeid (string).name() |
| Date: | Sun, 16 Sep 2001 08:35:31 +0200 |
| Organization: | Scopus Network Technologies |
| Lines: | 41 |
| Message-ID: | <3BA44833.A2A1099@bigfoot.com> |
| NNTP-Posting-Host: | gateway.scopus.co.il (194.90.203.161) |
| Mime-Version: | 1.0 |
| X-Trace: | fu-berlin.de 1000618542 11253756 194.90.203.161 (16 [79865]) |
| X-Mailer: | Mozilla 4.7 [en] (Win98; I) |
| X-Accept-Language: | en |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
=========================================================
GNU C++ version 2.95.3 20010315/djgpp (release) (djgpp)
compiled by GNU C version 2.95.3 20010315/djgpp (release)
Windows98
=========================================================
Using typeid (string).name() I have got the following results.
//--- Source file ---
#include <string>
#include <typeinfo>
int main()
{
cout << typeid (string).name() << endl;
return 0;
}
//-------------------
//----- Running -----
t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_template2b0i0
//-------------------
I would like to see output as following :
//-------------------
string
//-------------------
Is it possible ?
===========================
Alex Vinokur
mailto:alexvn AT bigfoot DOT com
mailto:alexvn AT dr DOT com
http://up.to/alexvn
http://go.to/alexv_math
===========================
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |