摘要:
#ifndef SALESITEM_H#define SALESITEM_H#include <iostream>#include <string>class Sales_item{public: Sales_item(const std::string &book):isbn(book),units_sold(0),revenue(0.0){} Sales_item(std::istream &is){ is >> *this;} friend std::istream& operator>>(std::istream 阅读全文