1 2 3 |
|
1 2 3 4 5 |
|
1 2 3 4 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
|
1 2 3 4 5 6 7 8 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
| Null pointer on second type-cast |
Compatibility note: dynamic_cast requires the Run-Time Type Information (RTTI) to keep track of dynamic types. Some compilers support this feature as an option which is disabled by default. This must be enabled for runtime type checking using dynamic_castto work properly. |
1 2 |
|
1 2 3 4 |
|
1 2 |
|
1 2 3 4 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
| sample text |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
| a and b are of different types:a is: int *b is: int |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
| a is: class CBase *b is: class CBase **a is: class CBase*b is: class CDerived |
聯(lián)系客服