随笔分类 - 待解决问题
平时遇到的问题
摘要:运算符重载 一、加号重载运算符 - 实现两个自定义数据进行相加 class Person { public: Person() {}; Person(int a, int b) { this->m_A = a; this->m_B = b; } //成员函数实现 + 号运算符重载 Person op
阅读全文
摘要:#include <string> #include <iostream> using namespace std; #define PI "圆周率" #define j 100 int main(){ string name = "圆周率"; int i = 100; cout << name <
阅读全文