| | |
RTTI typeinfo question
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Apr 2004
Posts: 1
Reputation:
Solved Threads: 0
Hi,
I have a question about the RTTI library typeinfo. I used typeinfo to qurry the type of an int as in the following,
...
#include <typeinfo>
....
int i;
cout << typeid.name();
...
This is suppose to produce int as output but instead I got i, the name of the integer object I declared instead of the name of the type itself (int in this case)
Any expert advice?
Thanks a lot,
I have a question about the RTTI library typeinfo. I used typeinfo to qurry the type of an int as in the following,
...
#include <typeinfo>
....
int i;
cout << typeid.name();
...
This is suppose to produce int as output but instead I got i, the name of the integer object I declared instead of the name of the type itself (int in this case)
Any expert advice?
Thanks a lot,
![]() |
Similar Threads
- A little RTTI help (C++)
- Question regarding base class and derived class (C++)
- C command-line I/O question (C++)
- Compile error for RTTI (C++)
- Context-sensitive grammar question :( (Computer Science)
- Welcome PC Mod Kingdom peeps! (Geeks' Lounge)
- Laptop LCD built into a car? (Monitors, Displays and Video Cards)
- Changing Network Configuration (*nix Software)
Other Threads in the C++ Forum
- Previous Thread: need help to debugg this code please!
- Next Thread: C++ Address Book
| Thread Tools | Search this Thread |
api array arrays based beginner binary c++ c/c++ calculator char class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news number output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





