![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
运算符重载
求知 求是
这个作者很懒,什么都没留下…
展开
-
C++ 强制类型转换运算符的重载 (例题while(m >> n1 >> n2))
样例输入 12 44 344 555 -1 2 3 样例输出 12 44 344 555 #include <iostream> using namespace std; class MyCin { public: ...转载 2018-06-25 20:49:54 · 398 阅读 · 0 评论 -
C++ 例题(不一样的运算符重载)
#include &lt;iostream&gt; #include &lt;string&gt; using namespace std; template &lt;class T&gt; class CMyistream_iterator { public: T n; CMyistream_iterator(istream&amp; in);原创 2018-06-25 21:36:00 · 329 阅读 · 0 评论