会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
敲代码的喵
博客园
首页
新随笔
联系
订阅
管理
2022年3月
1.1凯撒密码
摘要: 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 敲代码的喵
阅读(75)
评论(0)
推荐(0)
2021年12月
实验5 模板类与多态
摘要: 实验任务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 敲代码的喵
阅读(49)
评论(5)
推荐(0)
2021年11月
实验4 继承
摘要: 实验任务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 敲代码的喵
阅读(25)
评论(3)
推荐(0)
实验3 类和对象II
摘要: 实验任务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 敲代码的喵
阅读(46)
评论(3)
推荐(0)
实验二 数组、指针与C++标准库
摘要: 实验任务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 敲代码的喵
阅读(44)
评论(4)
推荐(0)
2021年10月
实验1 类与对象
摘要: 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 敲代码的喵
阅读(84)
评论(5)
推荐(0)
公告