摘要: 使用const Complex operator + (const Complex &c ) const {} 重新定义类的+操作 #include<iostream> using namespace std; class Complex{ public: Complex(int r, int i) 阅读全文
posted @ 2020-05-15 23:44 c语言我的最爱 阅读(1554) 评论(0) 推荐(0) 编辑
摘要: 使用void(Student::*pwho) void = & Student::who // 构造函数指针 使用string Student::*p_name = & Student::m_name //构造变量指针 #include <iostream> #include <cstdio> us 阅读全文
posted @ 2020-05-15 23:30 c语言我的最爱 阅读(595) 评论(0) 推荐(0) 编辑