会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
sunnyllyy
博客园
首页
新随笔
联系
订阅
管理
2024年12月17日
实验六
摘要: 实验任务5: (1)代码部分: 1 #pragma once 2 #include<iostream> 3 #include<cstring> 4 5 using namespace std; 6 7 template<class T> 8 class Vector { 9 public: 10 V
阅读全文
posted @ 2024-12-17 18:40 刘晔yyy
阅读(24)
评论(0)
推荐(0)
2024年12月7日
实验五 继承和多态
摘要: 实验任务1: (1)代码部分: 1 #pragma once 2 3 #include <iostream> 4 #include <string> 5 6 using std::cout; 7 using std::endl; 8 using std::string; 9 10 // 发行/出版物
阅读全文
posted @ 2024-12-07 14:44 刘晔yyy
阅读(14)
评论(0)
推荐(0)
2024年11月24日
实验四
摘要: 实验任务1: (1)代码部分: 1 task1_1 2 #include <iostream> 3 4 using std::cout; 5 using std::endl; 6 7 // 类A的定义 8 class A { 9 public: 10 A(int x0, int y0); 11 vo
阅读全文
posted @ 2024-11-24 17:46 刘晔yyy
阅读(31)
评论(0)
推荐(0)
2024年11月8日
实验三
摘要: 实验任务1 (1)代码部分 1 //button.hpp 2 #pragma once 3 4 #include <iostream> 5 #include <string> 6 7 using std::string; 8 using std::cout; 9 10 // 按钮类 11 class
阅读全文
posted @ 2024-11-08 15:26 刘晔yyy
阅读(19)
评论(0)
推荐(0)
2024年10月27日
实验2
摘要: 1、实验任务1: (1)代码部分 1 //t.h 2 #pragma once 3 4 #include <string> 5 6 // 类T: 声明 7 class T { 8 // 对象属性、方法 9 public: 10 T(int x = 0, int y = 0); // 普通构造函数 1
阅读全文
posted @ 2024-10-27 20:38 刘晔yyy
阅读(16)
评论(0)
推荐(0)
2024年10月10日
实验1
摘要: 实验任务1: task1.cpp: 1 // 现代C++标准库、算法库体验 2 // 本例用到以下内容: 3 // 1. 字符串string, 动态数组容器类vector、迭代器 4 // 2. 算法库:反转元素次序、旋转元素 5 // 3. 函数模板、const引用作为形参 6 7 #includ
阅读全文
posted @ 2024-10-10 21:56 刘晔yyy
阅读(38)
评论(0)
推荐(0)
公告