摘要: task3 #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x{ 97, 98, 99, 100, 101 }; o 阅读全文
posted @ 2022-12-07 10:41 斋藤猫 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 实验任务4 .hpp 1 #pragma once 2 3 #include <iostream> 4 #include <string> 5 6 using namespace std; 7 8 class MachinePets { 9 public: 10 MatinePets(const s 阅读全文
posted @ 2022-11-30 14:57 斋藤猫 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 实验任务5 .cpp void test() { using namespace std; int n; cin >> n; vectorInt x1(n); for (auto i = 0; i < n; i++) x1.at(i) = i * i; output(x1); vectorInt x 阅读全文
posted @ 2022-11-09 00:06 斋藤猫 阅读(7) 评论(0) 推荐(1) 编辑
摘要: 实验任务5.hpp#pragma once #include<iostream> #include<string> #include<iomanip> using std::string; using std::cout; using std::endl; class Info { public: 阅读全文
posted @ 2022-10-31 11:56 斋藤猫 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 实验任务4 .hpp #pragma once #include <iostream> #include <string> #include <iomanip> #include <cmath> using std::cout; using std::endl; class Complex { pu 阅读全文
posted @ 2022-10-18 16:31 斋藤猫 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 实验任务2#include <iostream> #include <vector> using std::cout; using std::endl; class Point { public: Point(int x0 = 0, int y0 = 0); Point(const Point&p 阅读全文
posted @ 2022-10-05 09:13 斋藤猫 阅读(23) 评论(0) 推荐(0) 编辑