dynamic-cast
How to write own dynamic_cast
This have been asked in t开发者_如何学JAVAhe interview. How to write own dynamic_cast. I think, on the basis of typeid\'s name function.[详细]
2023-01-05 11:24 分类:问答Cannot dynamic_cast void* to templated class
The exact error I\'m getting is: Cannot dynamic_cast \'object\' (of type \'void*\') to type \'class udDator(int)*\'[详细]
2023-01-05 03:41 分类:问答Dynamic Cast: Class and String to Comparable
Instead of trying to trying t开发者_如何学Goo put my problem into words, here\'s some code that demonstrates what I want to do:[详细]
2023-01-04 20:15 分类:问答ClassCastException
i have two classes in java as: class A { int a=10; public void sayhello() { System.out.println(\"class A\");[详细]
2023-01-04 03:21 分类:问答Changing type of object in a conditional
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:[详细]
2023-01-01 16:29 分类:问答typeid , dynamic casting (upcast) and templates [closed]
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[详细]
2022-12-29 23:53 分类:问答Is my method for avoiding dynamic_cast<> faster than dynamic_cast<> itself?
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:[详细]
2022-12-28 18:56 分类:问答check keyboard state without using KeyboardEvent in AS3
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[详细]
2022-12-26 02:35 分类:问答王牌对王牌延禧攻略是哪一季哪一期?
《王牌对王牌》延禧攻略是第四季的第20190322期。本期节目迎来了《还珠格格》剧组温暖重聚,还有《延禧攻略》剧组中的吴谨言、张嘉倪、苏青、姜梓新组团踢馆,与王牌家族队抽丝剥茧寻找盗宝真凶“我来也”。[详细]
2022-12-25 17:41 分类:问答Polymorphism problem: How to check type of derived class?
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.[详细]
2022-12-24 03:57 分类:问答
加载中,请稍侯......