摘要:
运算符重载的函数形式 operator op(argument); op是有效的运算符 #include<iostream> using std::cout; using std::cin; using std::endl; class Complex{ public: float real; fl 阅读全文
摘要:
namespace TANG{ int height; int weight; } namespace GAO{ int height; int weight; } // 名称空间是开放的,可以把名称加入到已有名称空间中 name space TANG{ void func(); } 名称空间提供一 阅读全文