会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
moliqi1
博客园
首页
新随笔
联系
订阅
管理
2023年12月17日
实验六
摘要: 实验任务4 vector.hpp #include<iostream> #include<stdexcept> #include <cassert> using namespace std; template<typename T> class Vector { private: T* ptr; i
阅读全文
posted @ 2023-12-17 19:35 moliqi
阅读(16)
评论(0)
推荐(0)
2023年12月4日
实验5 继承和多态
摘要: 实验任务三 pets.hpp #pragma once #include <iostream> #include <string> using namespace std; class MachinePets { protected: string nickname; public: Machine
阅读全文
posted @ 2023-12-04 09:51 moliqi
阅读(36)
评论(0)
推荐(0)
2023年11月30日
实验4 现代C++标准库与类模板
摘要: 实验任务5 task5.cpp #include"Textcoder.hpp" #include<iostream> #include<string> void test() { using namespace std; string text, encoded_text, decoded_text
阅读全文
posted @ 2023-11-30 20:23 moliqi
阅读(23)
评论(0)
推荐(0)
2023年11月6日
实验三:类与数组、指针。
摘要: 实验任务1 1 #pragma once 2 3 #include <iostream> 4 using std::cout; 5 using std::endl; 6 7 class Point { 8 public: 9 Point(int x0 = 0, int y0 = 0); 10 ~Po
阅读全文
posted @ 2023-11-06 09:40 moliqi
阅读(20)
评论(0)
推荐(0)
公告