我知道,當一個對象作爲參數調用一個函數來調用拷貝構造函數的一種方式是。拷貝構造函數++
例如
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