2022年12月3日

实验六 模板类和文件

摘要: 实验三 task3.1 1 #include <iostream> 2 #include <fstream> 3 #include <array> 4 #define N 5 5 int main() { 6 using namespace std; 7 array<int, N> x {97, 9 阅读全文

posted @ 2022-12-03 16:06 WREKER 阅读(23) 评论(0) 推荐(0) 编辑

2022年11月27日

实验五 继承和多态

摘要: 实验四 pets.hpp 1 #pragma once 2 #include<iostream> 3 #include<string> 4 using namespace std; 5 6 class MachinePets{ 7 public: 8 MachinePets(){} 9 Machin 阅读全文

posted @ 2022-11-27 19:24 WREKER 阅读(17) 评论(0) 推荐(0) 编辑

2022年11月5日

实验4 类与数组 指针

摘要: 实验五: vectorInt.hpp 1 #pragma once 2 #include<cassert> 3 using namespace std; 4 5 class vectorInt{ 6 public: 7 vectorInt(int n); 8 vectorInt(int n,int 阅读全文

posted @ 2022-11-05 14:05 WREKER 阅读(10) 评论(0) 推荐(0) 编辑

2022年10月23日

实验3 数组、指针与现代C++标准库

摘要: 任务五 info.hpp 1 #pragma once 2 #include<iostream> 3 #include<string> 4 #include<iomanip> 5 using namespace std; 6 class info 7 { 8 public: 9 info(strin 阅读全文

posted @ 2022-10-23 15:29 WREKER 阅读(5) 评论(0) 推荐(0) 编辑

2022年10月16日

实验二 类与对象(2)

摘要: 任务4: Complex.hpp 1 #pragma once 2 #include<bits/stdc++.h> 3 using namespace std; 4 class Complex{ 5 public: 6 Complex (double r=0,double i=0):real{r}, 阅读全文

posted @ 2022-10-16 23:08 WREKER 阅读(20) 评论(0) 推荐(0) 编辑

2022年9月29日

实验1 类与对象

摘要: 1 #include <iostream> 2 using namespace std; 3 // 定义Point类 4 class Point { 5 public: 6 Point(int x0=0, int y0=0); 7 Point(const Point&p ); 8 ~Point()= 阅读全文

posted @ 2022-09-29 18:56 WREKER 阅读(26) 评论(0) 推荐(0) 编辑

2022年9月27日

个人地址

摘要: https://www.cnblogs.com/ljhakuna/ 阅读全文

posted @ 2022-09-27 20:17 WREKER 阅读(7) 评论(0) 推荐(0) 编辑

导航