随笔分类 - C++
摘要:#ifndef __STRING__ #define __STRING__ #include<ostream> class String { public: String(const char* cstr = 0); //构造函数 String(const String& str); //拷贝构造
阅读全文
摘要:#ifndef __COMPLEX__ #define __COMPLEX__#include<ostream> class complex{public: complex(const double r = 0, const double i = 0) //构造函数,r和i的默认参数为0 :re(r
阅读全文
摘要:C++ operator(重载操作符)
阅读全文