【发布时间】:2014-09-09 05:10:11
【问题描述】:
我的问题是下面的代码有什么好处,我已经用一个类来存储它 对象...
product& productDB:: Push_in(std::string a_name,std::string a_brand,std::string a_supply,float x, float y)
{
product temp;
temp.mf_setProductName(a_name);
temp.mf_setBrandName(a_brand);
temp.mf_setSupplier(a_supply);
temp.mf_setReceivingPrice( x);
temp.mf_setRrp(y);
Goods.push_back(temp);
return Goods[Goods.size()-1];
}
为什么我不能退货 提前谢谢
【问题讨论】:
-
仅根据您发布的代码无法猜测。
-
您的代码。你告诉我们。