constructers not allowed a return
来源:学生作业帮 编辑:神马作文网作业帮 分类:数学作业 时间:2024/11/11 22:29:17
constructers not allowed a return
constructor函数不能有返回类型.
比如你建的类是A
constructor 就是 A() 和其他的 void a()等等函数不一样,函数名的前面不能有任何类型
再问: #include using namespace std; class shuzu { int a[10]; public: shuzu(); void shuchu(); } shuzu::shuzu() { int i; for(i=0;i>a[i]; } void shuzu::shuchu() { int i; for(i=0;i
比如你建的类是A
constructor 就是 A() 和其他的 void a()等等函数不一样,函数名的前面不能有任何类型
再问: #include using namespace std; class shuzu { int a[10]; public: shuzu(); void shuchu(); } shuzu::shuzu() { int i; for(i=0;i>a[i]; } void shuzu::shuchu() { int i; for(i=0;i
constructers not allowed a return
My mum did not -----home A return to B return
smoking is not a allowed in this restaurant 为什么allowed要家ed
405 Not Allowed是什么意思?
405 Not Allowed
英语翻译i did not except such a full return.
students ( )to eat in clsaa.A,is not allow B,is not allowed
Student __to eat in class.A,are not allow,B,are not allowed,
10. Children are not allowed
什么是boots are not allowed
These characters are not allowed
D( ) litter is not allowed