10 2022 档案
实验3
摘要:task5 Info.h 1 #pragma once 2 #include <iostream> 3 #include <vector> 4 #include <string> 5 using namespace std; 6 7 class info { 8 public: 9 info(str 阅读全文
posted @ 2022-10-24 23:10 摆烂青年 阅读(22) 评论(0) 推荐(0)
实验2 类和对象(2)
摘要:实验任务4 Complex.hpp 1 #pragma once 2 #include<iostream> 3 #include<cmath> 4 5 using namespace std; 6 7 class Complex { 8 public: 9 10 Complex(double rea 阅读全文
posted @ 2022-10-18 20:18 摆烂青年 阅读(22) 评论(0) 推荐(0)
实验1 类和对象
摘要:实验任务1 task1_1.cpp #include<iostream> #include<string> #include<vector> int main() { using namespace std; string s1; string s2{"c plus plus"}; string s 阅读全文
posted @ 2022-10-04 19:47 摆烂青年 阅读(36) 评论(0) 推荐(0)