摘要:
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 阅读全文
摘要:
Pets.hpp #pragma once #include<iostream> #include<string> using namespace std; class MachinePets{ private: string nickname; public: MachinePets(const 阅读全文
摘要:
vectorint.hpp #pragma once #include<iostream> using std::cout; using std::endl; class vectorint{ private: int size; int *p; public: vectorint(int n):s 阅读全文
摘要:
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 阅读全文
摘要:
#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) 阅读全文
摘要:
任务二 #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 { 阅读全文