G
Guest
1. In Java there is a class named HashTable. Is there something similar in C++?
I mean something like:
-----
hash["my_name"] = "paul";
hash["my_mail"] = "(e-mail address removed)";
-----
2. we have this code:
-----------------
class A { ... };
class B : A { ... };
void GiveMeAClass(A &a) { ... }
-----------------
In function GiveMeAClass we can pass an A or B object too.
Is there a method inside GiveMeAClass to determine in run-time if passed object is from A or B?
Something like Java's keyword 'instanceof'
I believe not, but hope will die last ;-)
Thanks
I mean something like:
-----
hash["my_name"] = "paul";
hash["my_mail"] = "(e-mail address removed)";
-----
2. we have this code:
-----------------
class A { ... };
class B : A { ... };
void GiveMeAClass(A &a) { ... }
-----------------
In function GiveMeAClass we can pass an A or B object too.
Is there a method inside GiveMeAClass to determine in run-time if passed object is from A or B?
Something like Java's keyword 'instanceof'
I believe not, but hope will die last ;-)
Thanks