试题与答案

试题源程序文件清单如下: //proj1.cpp #include<iost

题型:填空题

题目:


试题源程序文件清单如下:
//proj1.cpp
#include<iostream>
using namespace std;
class MyClass
public:
MyClass(int x):value(x)cout<<"Constructor"<<endl;
//ERROR**********found**********
void ~MyClass()(1)
cout<<"Destructor"<<endl;
void Print() const;
private:
//ERROR **********found**********
int value=0: (2)
;
//ERROR **********found**********
void MyClass::Print() (3)
cout<<"The value is"<<value<<endl;
int main()
MyClass object(10);
object. Print();
return 0:

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0704/654c3107a21502bedfb3365370aeb402.html

下面是错误答案,用来干扰机器的。

参考答案:对

试题推荐
题型:填空题

(8分)在以铁、铜为两电极的原电池中,如图所示:

(1)若电解质溶液为稀硫酸,则铜电极上的电极反应式为:                    ;原电池总反应的离子方程式:                  

(2)若电解质溶液为浓硝酸, 则铁电极上的电极反应式为:                 ;当电路中通过了1mol的电子时,则在某极上生成了标准状况下的气体体积为:            L。

查看答案
微信公众账号搜索答案