代码拉取完成,页面将自动刷新
//#include<iostream>
//using namespace std;
//class Person
//{
//public:
// int m_A;
// int m_B;
//
// //Person operator+ (Person& p)//Ա
// //{
// // Person temp;
// // temp.m_A = this->m_A + p.m_A;
// // temp.m_B = this->m_B + p.m_B;
// // return temp;
// //}
//};
//Person operator+(Person&p1,Person&p2)
//{
// Person temp;
// temp.m_A = p1.m_A + p2.m_A;
// temp.m_B = p1.m_B + p2.m_B;
// return temp;
//}
//void test01()
//{
// Person p1;
// p1.m_A = 10;
// p1.m_B = 20;
// Person p2;
// p2.m_A = 10;
// p2.m_B = 20;
// Person p3 = p1 + p2;
// cout << p3.m_A << endl;
// cout << p3.m_B << endl;
//
//}
//
//
//int main()
//{
// test01();
//
//
// return 0;
//}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。