2022年12月7日
摘要: #include<fstream> #include<iostream> #include<bits/stdc++.h> using namespace std; void output(ofstream &out, string To = "con"){ out.open(To); if(!out 阅读全文
posted @ 2022-12-07 11:32 离小离 阅读(25) 评论(0) 推荐(0) 编辑
  2022年11月29日
摘要: pet.hpp #pragma once #include<iostream> using namespace std; class MachinePets { public: MachinePets(const string s):name(s){} virtual string talk()=0 阅读全文
posted @ 2022-11-29 21:36 离小离 阅读(17) 评论(0) 推荐(0) 编辑
  2022年11月7日
摘要: 1 #pragma once 2 #include<iostream> 3 using namespace std; 4 class vectorInt 5 { 6 public: 7 vectorInt(int n); 8 vectorInt(int n, int num); 9 vectorIn 阅读全文
posted @ 2022-11-07 21:22 离小离 阅读(25) 评论(0) 推荐(0) 编辑
  2022年10月24日
摘要: 实验五 hpp 1 #pragma once 2 3 #include<iostream> 4 #include <iomanip> 5 using namespace std; 6 class info 7 { 8 9 public: 10 info(string nickname =" ", s 阅读全文
posted @ 2022-10-24 22:28 离小离 阅读(16) 评论(0) 推荐(0) 编辑
  2022年10月14日
摘要: 实验任务四 Complex.hpp 源代码 1 #pragma once 2 3 4 #include<iostream> 5 #include<cmath> 6 using namespace std; 7 8 class Complex 9 { 10 public: 11 Complex(); 阅读全文
posted @ 2022-10-14 14:43 离小离 阅读(19) 评论(0) 推荐(0) 编辑
  2022年9月29日
摘要: 实验任务二 1 #include<iostream> 2 using namespace std; 3 class Point 4 { 5 public: 6 Point(int x0 = 0, int y0 = 0); 7 Point(const Point& p); 8 ~Point() = d 阅读全文
posted @ 2022-09-29 23:02 离小离 阅读(18) 评论(0) 推荐(0) 编辑
  2022年9月27日
摘要: 离小离 - 博客园 (cnblogs.com) 阅读全文
posted @ 2022-09-27 16:05 离小离 阅读(8) 评论(0) 推荐(0) 编辑