![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++ Primer Chapter 14 (3 / 9)
Chen丶HC
这个作者很懒,什么都没留下…
展开
-
14.1.Basic Concepts
//14.1. Basic Concepts //Exercises Section 14.1 //Exercise 14.1: In what ways does an overloaded operator differ from a //built - in operator ? In what ways are overloaded operators the same as the原创 2017-07-03 10:00:30 · 176 阅读 · 0 评论 -
14.2. Input and Output Operators
#include #include using namespace std; class String { friend ostream &operator<<(ostream &, const String &); public: String() : String("") { } String(const char *); String(const String &); St原创 2017-07-03 13:43:41 · 278 阅读 · 0 评论 -
14.3. Arithmetic and Relational Operators
#include #include using namespace std; class Sales_data { friend istream &operator>>(istream &, Sales_data &); friend ostream &operator<<(ostream &, const Sales_data &); friend Sales_data opera原创 2017-07-03 18:56:13 · 185 阅读 · 0 评论