摘要: #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x {97, 98, 99, 100, 101}; ofstream 阅读全文
posted @ 2022-12-01 22:13 saddwda 阅读(20) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<string> using namespace std; class MachinePets{ public: MachinePets(const string s):Nickname(s){} const string getNickname 阅读全文
posted @ 2022-11-29 22:07 saddwda 阅读(5) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> #include <string> using namespace std; class vectorInt { public: vectorInt(); vectorInt(int n); vectorInt(int n, 阅读全文
posted @ 2022-11-09 11:39 saddwda 阅读(21) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include"info.hpp" #include <vector> #include <string> #include<iomanip> using namespace std; int main() { const int capacity = 10 阅读全文
posted @ 2022-10-25 17:57 saddwda 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 任务四 类的定义 using namespace std; class Complex{ public: Complex(double r = 0, double i = 0){ real = r; imag = i; } Complex(Complex &c){ real = c.real; im 阅读全文
posted @ 2022-10-17 20:51 saddwda 阅读(14) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/qjj12-30/ 阅读全文
posted @ 2022-09-29 21:30 saddwda 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> #include <vector> int main() { using namespace std; string s1; string s2{"c plus plus"}; string s3{s2}; string s 阅读全文
posted @ 2022-09-29 19:31 saddwda 阅读(3) 评论(0) 推荐(0) 编辑