讀《C++沉思錄》心得:拷貝構造函數

讀《C++沉思錄》心得:拷貝構造函數   在讀《C++沉思錄》中第53頁的下面這段代碼時,突然看不懂了: 1 int num=0; 2 VehicleSurrogate parking_lot[3]; 3 Automobile x; 4 parking_lot[num++]=x; 5 //最後一天語句等價於下句 6 //parking_lot[num++]=VehicleSurrogate(x);
相關文章
相關標籤/搜索