-3
struct vehicle {
int available_supply=10;
int is_assigned_to_route=1;
};
vehicle vehicle_info [2];
如何使vehicle_info的副本?
我想是這樣
vehicle inital_vehicle_info [2]=vehicle_info;
可能有人給我一個提示嗎?
感謝給我這個鏈接。找到了解決方案:) customers inital_customer_info [2]; copy(customer_info + 0,customer_info + 2,inital_customer_info); – asfasdfasdfaesdafsdfaas