我知道,当一个对象作为参数调用一个函数来调用拷贝构造函数的一种方式是。拷贝构造函数++
例如
class A
{];
A object;
function(object);//here i have called a function with the class A's object.
supose如果函数的声明
void function(A &obj1);//here the function actually takes the object into a reference.
将拷贝构造函数将现在叫?
为什么不试试看? – Beta 2011-03-15 01:32:26