Can I get an object\'s name in run time (like getting an object\'s type via RTTI)? I want the object to be able to print its name.
C++ doesn't really support reflection. However, a bit of googling produced a couple of alternate methods, I doubt you will find them useful though.