摘要: #include<iostream>class Sales_item{ friend std::istream& operator>>(std::istream&, Sales_item&); friend std::ostream& operator<<(std::ostream&, const Sales_item&);private: int a;public: Sales_item(int b):a(b){}; Sales_item():a(0){}; //Sales_item operator +(c 阅读全文
posted @ 2011-03-19 19:04 hailong 阅读(223) 评论(0) 推荐(0) 编辑