摘要:
#include "stdafx.h"#include ////函数重载//namespace operator_test{ // //先定义一个类 // class CObject { public: CObject(int a) : m_a(a) { } int Get() { return m_a; } int Add(CObject& obj2) { return (this->Get() + obj2.Get()); } int operator+(CObject& obj2) { return (this->Get() + obj2. 阅读全文
posted @ 2013-11-24 11:26
sysnap
阅读(165)
评论(0)
推荐(0)

浙公网安备 33010602011771号