2022年11月30日

实验六

摘要: task3_1.cpp #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x {97, 98, 99, 100, 10 阅读全文

posted @ 2022-11-30 21:32 Xelfin 阅读(19) 评论(0) 推荐(0) 编辑

2022年11月25日

实验五

摘要: Pets.h #pragma once #include<iostream> #include<string> using namespace std; class MachinePets { public: MachinePets(const string& s="") :nickname(s) 阅读全文

posted @ 2022-11-25 13:45 Xelfin 阅读(18) 评论(0) 推荐(0) 编辑

2022年11月2日

实验四

摘要: 任务五: vectorlnt.h #pragma once #include<iostream> using std::cout; using std::cin; using std::endl; class vectorlnt { friend void output(const vectorln 阅读全文

posted @ 2022-11-02 22:32 Xelfin 阅读(16) 评论(0) 推荐(0) 编辑

2022年10月21日

实验三

摘要: info.h #pragma once #include<iostream> #include<string> using namespace std; class info { public: info(string _nickname, string _contact, string _city 阅读全文

posted @ 2022-10-21 14:53 Xelfin 阅读(21) 评论(0) 推荐(0) 编辑

2022年10月12日

实验二

摘要: task 4 Complex.h #pragma once #include<iostream> using namespace std; class Complex { friend Complex add(const Complex& obj1, const Complex& obj2); fr 阅读全文

posted @ 2022-10-12 21:00 Xelfin 阅读(29) 评论(0) 推荐(0) 编辑

2022年9月29日

实验一 类和对象

摘要: 1.实验任务1 #include<iostream> #include<string> #include<vector> using namespace std; int main() { string s1; string s2{ "c plus plus" }; string s3{ s2 }; 阅读全文

posted @ 2022-09-29 09:57 Xelfin 阅读(6) 评论(0) 推荐(0) 编辑

导航