摘要: 1 #include <iostream> 2 #include <string> 3 using namespace std; 4 string encoder(string text,int offset)//加密 5 { 6 string encoded_text=text; 7 for(au 阅读全文
posted @ 2022-03-31 09:24 敲代码的喵 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 实验任务2 Person.hpp源码 1 #include <iostream> 2 #include <fstream> 3 #include <vector> 4 #include "Person.hpp" 5 6 int main() 7 { 8 using namespace std; 9 阅读全文
posted @ 2021-12-11 00:13 敲代码的喵 阅读(39) 评论(5) 推荐(0) 编辑
摘要: 实验任务2 基类Graph的成员函数draw()前面不加关键字virtual时 源代码: 1 #include <iostream> 2 #include <typeinfo> 3 /* run this program using the console pauser or add your ow 阅读全文
posted @ 2021-11-29 19:55 敲代码的喵 阅读(13) 评论(3) 推荐(0) 编辑
摘要: 实验任务4 vector_int.hpp 1 #ifndef VECTOR_INT_HPP 2 #define VECTOR_INT_HPP 3 #include <iostream> 4 #include <cassert> 5 using namespace std; 6 class Vecto 阅读全文
posted @ 2021-11-05 20:29 敲代码的喵 阅读(33) 评论(3) 推荐(0) 编辑
摘要: 实验任务5 程序源码 Info.cpp 1 #ifndef INFO_HPP 2 #define INFO_HPP 3 #include <iostream> 4 #include <iomanip> 5 #include <string> 6 using namespace std; 7 clas 阅读全文
posted @ 2021-11-02 14:09 敲代码的喵 阅读(31) 评论(4) 推荐(0) 编辑
摘要: 1、实验任务3 程序源码 Complex.hpp 1 #ifndef COMPLEX_HPP 2 #define COMPLEX_HPP 3 #include <iostream> 4 #include <iomanip> 5 #include <string> 6 #include <math.h 阅读全文
posted @ 2021-10-24 21:32 敲代码的喵 阅读(66) 评论(5) 推荐(0) 编辑