Yes, though this is surely cheating, isn't it? The whole idea is to avoid hand feeding a string to the constructor. "John-John" just looks ugly to me! Thanks anyway.
Type: Posts; User: TheodoreG
Yes, though this is surely cheating, isn't it? The whole idea is to avoid hand feeding a string to the constructor. "John-John" just looks ugly to me! Thanks anyway.
I want to get the name of a classe's instance at runtime. Is this possible?
ie.
class MyClass
{
....
public:
void getInstanceName();
}