摘要: #include<iostream> #include<string> #include<fstream> #include <vector> #include"person.h" using namespace std; int main() { vector<person> phone_book 阅读全文
posted @ 2021-12-11 15:00 闫信宇 阅读(23) 评论(2) 推荐(0) 编辑
摘要: #pragma once #include<iostream> #include<string> using namespace std; class car { public: car(string a="nothing", string b="nothing", int c=0) :maker( 阅读全文
posted @ 2021-11-24 19:06 闫信宇 阅读(29) 评论(2) 推荐(0) 编辑
摘要: #pragma once #include <iostream> #include <cassert> class Matrix { public: Matrix(int n); // 构造函数,构造一个n*n的矩阵 Matrix(int n, int m); // 构造函数,构造一个n*m的矩阵 阅读全文
posted @ 2021-11-05 14:57 闫信宇 阅读(36) 评论(2) 推荐(0) 编辑
摘要: #pragma once #include<string> using namespace std; class TextCoder { public: TextCoder(string qq); string encoder(); string decoder(); private: string 阅读全文
posted @ 2021-10-27 23:59 闫信宇 阅读(23) 评论(3) 推荐(0) 编辑
摘要: Complex.h #pragma once #ifndef CIRCLE_H #define CIRCLE_H class Complex { public: Complex(); Complex(double a, double b); Complex(double a); Complex(Co 阅读全文
posted @ 2021-10-21 00:16 闫信宇 阅读(19) 评论(3) 推荐(0) 编辑