摘要: 实验任务4 Vector.hpp #ifndef VECTOR_HPP #define VECTOR_HPP #include <iostream> #include <stdexcept> template <typename T> class Vector; template <typename 阅读全文
posted @ 2023-12-13 21:14 帽子戏法cyt 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 实验任务3 pets.hpp #pragma once #include <iostream> #include <string> using namespace std; class MachinePets{ public: MachinePets(const string s):nickname 阅读全文
posted @ 2023-12-03 20:06 帽子戏法cyt 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 实验任务5TextCoder.hpp #pragma once #include<iostream> #include<string> using namespace std; class TextCoder { public: TextCoder(string text0) : text{ tex 阅读全文
posted @ 2023-11-27 16:31 帽子戏法cyt 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 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, 10 阅读全文
posted @ 2022-12-03 16:59 帽子戏法cyt 阅读(17) 评论(0) 推荐(0) 编辑
摘要: pets.hpp #pragma once #include <iostream> #include <string> using namespace std; class MachinePets{ public: MachinePets(const string s):nickname(s){} 阅读全文
posted @ 2022-11-30 13:18 帽子戏法cyt 阅读(15) 评论(0) 推荐(0) 编辑
摘要: vectorInt.hpp #pragma once #include <cassert> #include <iostream> using namespace std; class vectorInt{ public: vectorInt(int n); vectorInt(int n, int 阅读全文
posted @ 2022-11-04 20:30 帽子戏法cyt 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 实验任务5 Info.hpp #pragma once #include<iostream> #include<string> #include <iomanip> using namespace std; class Info{ public: Info(string nickname0, str 阅读全文
posted @ 2022-10-24 22:09 帽子戏法cyt 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 实验任务4 Complex.hpp #pragma once #include <iostream> #include <cmath> using namespace std; class Complex { public: Complex(double r=0,double i=0); Compl 阅读全文
posted @ 2022-10-17 21:43 帽子戏法cyt 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 实验任务2: #include<iostream> using std::cout; using std::endl; class Point { public: Point(int x0=0, int y0=0); Point(const Point&p); ~Point()=default; i 阅读全文
posted @ 2022-09-29 19:35 帽子戏法cyt 阅读(21) 评论(0) 推荐(0) 编辑