摘要: 任务三: 任务四: #include <iostream> #include "Vector.hpp" void test() { using namespace std; int n; cin >> n; Vector<double> x1(n); for (auto i = 0; i < n; 阅读全文
posted @ 2022-12-01 21:49 胡嘉瑞 阅读(10) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include "pets.hpp" void play(MachinePets &obj){ std::cout << obj.get_nickname() << " says " << obj.talk() << std::endl; } void te 阅读全文
posted @ 2022-11-28 21:56 胡嘉瑞 阅读(8) 评论(0) 推荐(0) 编辑
摘要: #pragma once #include<iostream> using namespace std; class vectorInt { public: vectorInt(int n); vectorInt(int n, int value); vectorInt(const vectorIn 阅读全文
posted @ 2022-11-09 09:32 胡嘉瑞 阅读(6) 评论(0) 推荐(0) 编辑
摘要: #include"Info.hpp" #include<iostream> #include<vector> #include<string> #include<iomanip> using namespace std; static int t = 0; const int capacity = 阅读全文
posted @ 2022-10-23 20:45 胡嘉瑞 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <complex> int main(){ using namespace std; complex<double> c1{3, 4}, c2{4.5}; const complex<double> c3{c2}; cout << "c1 = 阅读全文
posted @ 2022-10-18 21:58 胡嘉瑞 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> #include <vector> int main() { using namespace std; string s1; string s2{"c plus plus"}; string s3{s2}; string s 阅读全文
posted @ 2022-10-04 21:07 胡嘉瑞 阅读(19) 评论(0) 推荐(0) 编辑