This have been asked in t开发者_如何学JAVAhe interview. How to write own dynamic_cast. I think, on the basis of typeid\'s name function.
The exact error I\'m getting is: Cannot dynamic_cast \'object\' (of type \'void*\') to type \'class udDator(int)*\'
Instead of trying to trying t开发者_如何学Goo put my problem into words, here\'s some code that demonstrates what I want to do:
i have two classes in java as: class A { int a=10; public void sayhello() { System.out.println(\"class A\");
I\'m having a bit of trouble with dynamic_casting. I need to determine at runtime the type of an object. Here is a demo:
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this
I was answering a question a few minutes ago and it raised to me another one: In one of my projects, I do some network message parsing. The messages are in the form of:
Is it possible to check for pressed keys without using the KeyboardEvent? I have an ENTER_FRAME event setup called enterFrameHandler and I want to check within the function enterFrameHandler if any k
《王牌对王牌》延禧攻略是第四季的第20190322期。本期节目迎来了《还珠格格》剧组温暖重聚,还有《延禧攻略》剧组中的吴谨言、张嘉倪、苏青、姜梓新组团踢馆,与王牌家族队抽丝剥茧寻找盗宝真凶“我来也”。
this is my first question here :) I know that I should not check for object type but instead use dynamic_cast, but that would not solve my problem.