摘要:
实验三 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 阅读全文
摘要:
实验4 pets.hpp #pragma once #include<iostream> #include<string> using namespace std; class MachinePets { public: MachinePets(const string s) { nickname 阅读全文
摘要:
实验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 阅读全文
摘要:
task5 string name1, contact1, city1, choice,obj; int n1,i; int count=0; vector<info> audience_info_list; cout << "录入信息:" << endl; cout << "昵称\t"; cout 阅读全文
摘要:
实验4 Complex.hpp #pragma once #include <iostream> #include<math.h> class Complex { public: double get_real() { return real; } double get_imag()const { 阅读全文
摘要:
实验1 #include<iostream> #include<string> #include<vector> int main() { using namespace std; string s1; string s2{"c plus plus"}; string s3{s2}; string 阅读全文