C++ Prime Plus中第一章头文件Sales_item.h
#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
原创
2020-10-15 22:10:37 ·
259 阅读 ·
0 评论