网上说这个函数的运行会调用拷贝构造函数  但是为什么运行后 copy 这个字符串不会打印  也就是说没有调用拷贝构造函数吗?  
class CExample  
{ 
private: 
 int a; 
 
public: 
 //构造函数 
 CExample(int b) 
 {  
  a = b; 
 } 
 
 //拷贝构造 
 CExample(const CExample& C) 
 { 
  a = C.a; 
  cout<<"copy"<<endl; 
 } 
 
     void Show () 
     { 
         cout<<a<<endl; 
     } 
}; 
 
//全局函数 
CExample g_Fun() 
{ 
 CExample temp(0); 
 return temp; 
} 
 
int main() 
{ 
 g_Fun(); 
 return 0; 
} |   
     
  
 |