摘要: #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 阅读全文
posted @ 2012-11-27 06:55 jeff_nie 阅读(1308) 评论(0) 推荐(0) 编辑