摘要: task3_1 #include<iostream> #include<vector> template<typename T> void output(const T&obj){ for(auto &item:obj) std::cout<<item<<", "; std::cout<<"\b\b 阅读全文
posted @ 2022-12-07 09:23 。a 阅读(20) 评论(0) 推荐(0) 编辑
摘要: Pets.hpp #pragma once #include<iostream> #include<string> using namespace std; class MachinePets{ private: string nickname; public: MachinePets(const 阅读全文
posted @ 2022-11-29 22:44 。a 阅读(18) 评论(0) 推荐(0) 编辑
摘要: vectorint.hpp #pragma once #include<iostream> using std::cout; using std::endl; class vectorint{ private: int size; int *p; public: vectorint(int n):s 阅读全文
posted @ 2022-11-03 16:51 。a 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 1 #include"Info.hpp" 2 #include<iostream> 3 #include<vector> 4 #include<iomanip> 5 using namespace std; 6 const int capacity = 100; 7 int main(){ 8 ve 阅读全文
posted @ 2022-10-26 11:26 。a 阅读(18) 评论(0) 推荐(0) 编辑
摘要: #pragma once #include<iostream> #include<cmath> using namespace std; class complex { public: complex(double r = 0.0, double i = 0.0) :real(r), imag(i) 阅读全文
posted @ 2022-10-17 13:02 。a 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 任务二 #include<iostream> using namespace std; class point{ public: point(int x0=0,int y0=0); point(const point&p); ~point()=default; int get_x() const { 阅读全文
posted @ 2022-09-30 12:39 。a 阅读(6) 评论(0) 推荐(0) 编辑