会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yuannauy
博客园
首页
新随笔
联系
订阅
管理
2024年12月21日
实验六
摘要: Task1.cpp 1 #pragma once 2 3 #include <iostream> 4 #include <stdexcept> 5 6 // 声明 7 //////////////////////////////////////////////////// 8 // 复数模板类声明
阅读全文
posted @ 2024-12-21 14:22 dingdong。
阅读(12)
评论(0)
推荐(0)
2024年12月7日
实验五 继承和多态
摘要: Task1.cpp 1 #include "publisher.hpp" 2 #include <vector> 3 #include <typeinfo> 4 5 using std::vector; 6 7 void test() { 8 vector<Publisher *> v; 9 10
阅读全文
posted @ 2024-12-07 15:49 dingdong。
阅读(15)
评论(0)
推荐(0)
2024年11月24日
实验四
摘要: Task1.cpp: 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 18:00 dingdong。
阅读(22)
评论(0)
推荐(0)
2024年11月6日
实验3
摘要: task1.cpp 1 #pragma once 2 3 #include <iostream> 4 #include <string> 5 6 using std::string; 7 using std::cout; 8 9 // 按钮类 10 class Button { 11 public:
阅读全文
posted @ 2024-11-06 23:27 dingdong。
阅读(20)
评论(0)
推荐(0)
2024年10月31日
实验2
摘要: task 1.cpp 1 // 类T: 实现 2 // 普通函数实现 3 4 #include "t.h" 5 #include <iostream> 6 #include <string> 7 8 using std::cout; 9 using std::endl; 10 using std::
阅读全文
posted @ 2024-10-31 16:02 dingdong。
阅读(30)
评论(0)
推荐(0)
2024年10月14日
实验1 C++
摘要: task1: 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 6 using namespace std; 7 8 // 声明 9 // 模板函数声明 10 template
阅读全文
posted @ 2024-10-14 18:13 dingdong。
阅读(12)
评论(0)
推荐(0)
公告