摘要: w实验任务三 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,101}; 阅读全文
posted @ 2022-11-30 21:18 熊二想吃蜂蜜 阅读(43) 评论(0) 推荐(0) 编辑
摘要: task4.cpp #include<iostream> #include"pets.h" void play(MachinePets &obj){ std::cout<<obj.get_nickname()<<" says "<<obj.talk()<<std::endl; } void test 阅读全文
posted @ 2022-11-23 22:24 熊二想吃蜂蜜 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 实验任务五 vectorInt.hpp #pragma #include<iostream> using std::cout; using std::endl; class vectorInt{ public: vectorInt(int n); vectorInt(int n,int value) 阅读全文
posted @ 2022-11-02 19:42 熊二想吃蜂蜜 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 实验任务五 task.cpp #include"info.h" #include<iostream> #include<string> #include<vector> using namespace std; int main(){ const int capacity=100; vector<I 阅读全文
posted @ 2022-10-23 16:14 熊二想吃蜂蜜 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 实验任务4 Complex.hpp #pragma once #include<iostream> #include<cmath> using std::cout; using std::endl; class Complex{ public: Complex(double x=0.0,double 阅读全文
posted @ 2022-10-15 18:02 熊二想吃蜂蜜 阅读(29) 评论(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; int 阅读全文
posted @ 2022-09-28 19:50 熊二想吃蜂蜜 阅读(30) 评论(0) 推荐(0) 编辑