会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
jiangyuhui
博客园
首页
新随笔
联系
订阅
管理
2024年12月17日
c++实验六
摘要: task4: Vector.hpp: 1 #pragma once 2 #include<iostream> 3 #include<stdexcept> 4 using namespace std; 5 6 template<typename T> 7 class Vector 8 { 9 priv
阅读全文
posted @ 2024-12-17 20:00 冷辉煌
阅读(30)
评论(0)
推荐(0)
2024年12月5日
c++实验五
摘要: task1: publisher.hpp: 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-05 10:33 冷辉煌
阅读(37)
评论(0)
推荐(0)
2024年11月24日
c++实验四
摘要: task1: 代码: 1 #include <iostream> 2 3 using std::cout; 4 using std::endl; 5 6 // 类A的定义 7 class A { 8 public: 9 A(int x0, int y0); 10 void display() con
阅读全文
posted @ 2024-11-24 21:45 冷辉煌
阅读(34)
评论(0)
推荐(0)
2024年11月10日
c++实验三
摘要: task1: 代码: button.hpp: 1 #pragma once 2 3 #include <iostream> 4 #include <string> 5 6 using std::string; 7 using std::cout; 8 9 // 按钮类 10 class Button
阅读全文
posted @ 2024-11-10 23:00 冷辉煌
阅读(34)
评论(0)
推荐(0)
2024年10月28日
C++ 实验二
摘要: task1 t.h代码: 1 #pragma once 2 3 #include <string> 4 5 // 类T: 声明 6 class T { 7 // 对象属性、方法 8 public: 9 T(int x = 0, int y = 0); // 普通构造函数 10 T(const T &
阅读全文
posted @ 2024-10-28 16:40 冷辉煌
阅读(40)
评论(0)
推荐(0)
2024年10月13日
实验1 C++
摘要: task 1: 代码: 1 // 现代C++标准库、算法库体验 2 // 本例用到以下内容: 3 // 1. 字符串string, 动态数组容器类vector、迭代器 4 // 2. 算法库:反转元素次序、旋转元素 5 // 3. 函数模板、const引用作为形参 6 7 #include <ios
阅读全文
posted @ 2024-10-13 21:24 冷辉煌
阅读(24)
评论(0)
推荐(0)
公告