随笔分类 -  待解决问题

平时遇到的问题
摘要:运算符重载 一、加号重载运算符 - 实现两个自定义数据进行相加 class Person { public: Person() {}; Person(int a, int b) { this->m_A = a; this->m_B = b; } //成员函数实现 + 号运算符重载 Person op 阅读全文
posted @ 2022-09-21 20:06 何侠客 阅读(22) 评论(0) 推荐(0) 编辑
摘要:#include <string> #include <iostream> using namespace std; #define PI "圆周率" #define j 100 int main(){ string name = "圆周率"; int i = 100; cout << name < 阅读全文
posted @ 2022-09-15 21:07 何侠客 阅读(205) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示