1. 首页
  2. 数据库
  3. 其它
  4. 第十四章 习题14 21 习题14 30

第十四章 习题14 21 习题14 30

上传者: 2021-01-15 16:29:37上传 PDF文件 23.62KB 热度 14次
习题14-21 Sales_data& Sales_data::operator+=(const Sales_data &rhs) { Sales_data temp = *this; *this = temp + rhs; return *this; } Sales_data& operator+ (const Sales_data& lhs, const Sales_data& rhs) { Sales_data ret(lhs); lhs.units_sold += rhs.units_sold; lhs.revenue += rhs.revenue;
下载地址
用户评论