摘要: task3_1: 1 #include <iostream> 2 #include <fstream> 3 #include <array> 4 #define N 5 5 6 int main() { 7 using namespace std; 8 9 array<int, N> x {97, 阅读全文
posted @ 2022-12-04 21:14 .木枝 阅读(18) 评论(0) 推荐(0) 编辑
摘要: task4.cpp: #include <iostream> #include "实验五task4_pets.hpp" void play(MachinePets &obj) { std::cout << obj.get_nickname() << " says " << obj.talk() << 阅读全文
posted @ 2022-11-27 14:18 .木枝 阅读(11) 评论(0) 推荐(0) 编辑
摘要: task5: #pragma once #include <iostream> #include <cassert> #include <string> using namespace std; class vectorInt { public: vectorInt(int n0); vectorI 阅读全文
posted @ 2022-11-06 16:13 .木枝 阅读(21) 评论(0) 推荐(0) 编辑
摘要: task5 #pragma once #include <iostream> #include <string> #include <vector> #include <iomanip> using namespace std; class Info { public: Info(string ni 阅读全文
posted @ 2022-10-23 10:46 .木枝 阅读(24) 评论(0) 推荐(0) 编辑
摘要: #pragma once #include <iostream> #include <iomanip> #include <cmath> using std::cout; using std::endl; using std::setfill; using std::setw; using std: 阅读全文
posted @ 2022-10-18 23:08 .木枝 阅读(20) 评论(0) 推荐(0) 编辑