Redian新闻
>
硕士论文, 博士论文的引用也算吗?
avatar
硕士论文, 博士论文的引用也算吗?# Immigration - 落地生根
c*e
1
Is there anything wrong with the following code?
class A {};
class B : public A {};
void main() {
A* a;
B* b=a;
}
avatar
p*o
2
可怜的引用次数, 在想这两个学位论文的引用可以加上吗?
avatar
m*l
3
what's not wrong about the code?
------------
actually, in c# it's definitely wrong.
How about C++?
does the RTTI check it?

【在 c**********e 的大作中提到】
: Is there anything wrong with the following code?
: class A {};
: class B : public A {};
: void main() {
: A* a;
: B* b=a;
: }

avatar
p*h
4
当然,算上所有的,所有资源
avatar
l*a
5
obviously, base class pointer is not a derive class pointer
here u need type conversion
B* b=dynamic_casta;

【在 c**********e 的大作中提到】
: Is there anything wrong with the following code?
: class A {};
: class B : public A {};
: void main() {
: A* a;
: B* b=a;
: }

avatar
b*r
6
yes
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。