摘要: 实验三 task3_1.cpp #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x{ 97, 98, 99, 100 阅读全文
posted @ 2022-12-06 23:09 计缘计先生 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 实验4 pets.hpp #pragma once #include<iostream> #include<string> using namespace std; class MachinePets { public: MachinePets(const string s) { nickname 阅读全文
posted @ 2022-11-29 23:34 计缘计先生 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 实验5 task5.cpp #include <iostream> #include "vectorInt.hpp" void test() { using namespace std; int n; cin >> n; vectorInt x1(n); for (auto i = 0; i < n 阅读全文
posted @ 2022-11-08 22:55 计缘计先生 阅读(6) 评论(0) 推荐(0) 编辑
摘要: task5 string name1, contact1, city1, choice,obj; int n1,i; int count=0; vector<info> audience_info_list; cout << "录入信息:" << endl; cout << "昵称\t"; cout 阅读全文
posted @ 2022-10-25 23:23 计缘计先生 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 实验4 Complex.hpp #pragma once #include <iostream> #include<math.h> class Complex { public: double get_real() { return real; } double get_imag()const { 阅读全文
posted @ 2022-10-17 10:07 计缘计先生 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 实验1 #include<iostream> #include<string> #include<vector> int main() { using namespace std; string s1; string s2{"c plus plus"}; string s3{s2}; string 阅读全文
posted @ 2022-09-30 09:16 计缘计先生 阅读(22) 评论(0) 推荐(0) 编辑