摘要: 实验六 task 3 task 3_2.cpp #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<char, N> x; ifstre 阅读全文
posted @ 2022-12-05 13:28 重度电音控患者 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 实验 5 task 4 pets.hpp #pragma once #include<iostream> #include<iomanip> #include<string> using namespace std; class MachinePets { public: MachinePets() 阅读全文
posted @ 2022-11-27 13:59 重度电音控患者 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 实验四 vectorInt.hpp #pragma once #include<iostream> using namespace std; class vectorInt { private: int size; int* p; public: vectorInt(int n) :size{ n 阅读全文
posted @ 2022-11-05 11:01 重度电音控患者 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 实验3 数组、指针与现代C++标准库 task 5 Info.hpp #include<iostream> #include<string> using std::string; using std::cout; using std::cin; using std::endl; class Info 阅读全文
posted @ 2022-10-24 12:20 重度电音控患者 阅读(22) 评论(0) 推荐(0) 编辑
摘要: Task 4 hpp文件如下 #pragma once #include<iostream> #include<complex> class Complex { public: Complex(); Complex(double r,double i = 0.0); Complex(const Co 阅读全文
posted @ 2022-10-16 14:37 重度电音控患者 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 实验报告 实验任务1 (1) #include <iostream> #include <string> #include <vector> int main() { using namespace std; string s1; string s2{ "c plus plus" }; string 阅读全文
posted @ 2022-09-30 13:59 重度电音控患者 阅读(6) 评论(0) 推荐(0) 编辑
摘要: #My blog adress #include<iostream> using namespace std; int main(){ cout<<"my blog :https://www.cnblogs.com/lkx1366070554/"<<endl; } ###That's all 阅读全文
posted @ 2022-09-27 16:55 重度电音控患者 阅读(22) 评论(0) 推荐(0) 编辑