Redian新闻
>
为啥我买的广告版kindle3待机的时候都是作家头
avatar
为啥我买的广告版kindle3待机的时候都是作家头# PDA - 掌中宝
M*8
1
Is there an error with the sample code shown below? why?
class CLASS
{
public:
CLASS(int x=0);
CLASS(double);

};
int x=10;
CLASS * Parray = new CLASS[x];
avatar
s*x
2
是不是寄错了。。。没看到各种coupon啊。。。谢谢
avatar
b*j
3
编译没有问题。

【在 M*******8 的大作中提到】
: Is there an error with the sample code shown below? why?
: class CLASS
: {
: public:
: CLASS(int x=0);
: CLASS(double);
:
: };
: int x=10;
: CLASS * Parray = new CLASS[x];

avatar
r*l
4
联网了?

【在 s*****x 的大作中提到】
: 是不是寄错了。。。没看到各种coupon啊。。。谢谢
avatar
l*y
5
CLASS(int x=0)不就相当于default constructor了么
avatar
s*x
6
哦。。。现在看到了,谢谢
avatar
l*y
7
ft
avatar
H*M
8
看错了

【在 l*y 的大作中提到】
: ft
avatar
c*g
9
看错了

【在 l*y 的大作中提到】
: CLASS(int x=0)不就相当于default constructor了么
avatar
S*N
10

这个,要句法非常熟或者很多的经验。
CLASS[x]和constructor 不匹配吧?
我最近看C#, C++句法都忘了。

【在 M*******8 的大作中提到】
: Is there an error with the sample code shown below? why?
: class CLASS
: {
: public:
: CLASS(int x=0);
: CLASS(double);
:
: };
: int x=10;
: CLASS * Parray = new CLASS[x];

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