问题
问答题
完成下面类中成员函数的定义。
class test
private:
int n1;
float f1;
public:
test(int,float f);
test(test&);
;
test::test(______)
n1=n;f1=f;
test::test(test&t)
n1=t.n1;n=______;
答案
参考答案:int n,float f
t.f1