填空题
下列类定义中包含了构造函数和拷贝构造函数的原型声明,请在横线处填写正确的内容,使拷贝构造函数的声明完整。
class myClass
private:
int data;
public:
myClass(int value);//构造函数
myClass(const______another Object);//拷贝构造函数
【参考答案】
myClass&
热门
试题
填空题
若下列程序运行时输出结果为 1,A,10.1 2,B,3.5 请将程序补充完整。 #include<iostream> using namespace std; int main() void test(int,char,double______); test(1,’A’,10.1); test(2,’B’); return 0; void test(int a,char b,double c) cout<<a<<’,’<<b<<’,’<<c<<end1;