会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
cwj202183290470
博客园
首页
新随笔
联系
订阅
管理
2022年11月30日
实验6 模板类和文件I/O
摘要: 实验任务3 task3_1.cpp 1 #include<iostream> 2 #include<vector> 3 template<typename T> 4 void output(const T&obj){ 5 for(auto &item:obj) 6 std::cout<<item<<
阅读全文
posted @ 2022-11-30 23:27 曹文杰202183290470
阅读(63)
评论(0)
推荐(0)
2022年11月24日
实验5 继承和多态
摘要: 实验任务4 pets.hpp 1 #pragma once 2 #include<iostream> 3 #include<iomanip> 4 #include<string> 5 using namespace std; 6 class MachinePets{ 7 public: 8 Mach
阅读全文
posted @ 2022-11-24 21:05 曹文杰202183290470
阅读(49)
评论(0)
推荐(0)
2022年11月2日
实验4 类与数组、指针
摘要: 实验任务5 vectorInt.hpp 1 #pragma once 2 #include<iostream> 3 using namespace std; 4 class vectorInt{ 5 public: 6 vectorInt(int n); 7 vectorInt(int n,int
阅读全文
posted @ 2022-11-02 21:47 曹文杰202183290470
阅读(49)
评论(0)
推荐(0)
2022年10月19日
实验3 数组、指针与现代C++标准库
摘要: 实验任务5 task5.cpp 1 #include<iostream> 2 #include<vector> 3 #include<string> 4 #include"Info.hpp" 5 using namespace std; 6 int main() 7 { 8 const int ca
阅读全文
posted @ 2022-10-19 20:05 曹文杰202183290470
阅读(50)
评论(0)
推荐(0)
2022年10月13日
实验2 类和对象(2)
摘要: 4. 实验任务4 不使用C++标准库,自行设计并实现一个简化版复数类Complex Complex.hpp #include<iostream> #include<cmath> using namespace std; class Complex{ public: Complex(double a=
阅读全文
posted @ 2022-10-13 21:58 曹文杰202183290470
阅读(42)
评论(0)
推荐(0)
2022年9月28日
实验1 类与对象
摘要: 实验任务2 #include<iostream> using std::cout; using std::endl; class Point{ public: Point(int x0=0,int y0=0); Point(const Point&p); ~Point()=default; int
阅读全文
posted @ 2022-09-28 18:59 曹文杰202183290470
阅读(58)
评论(0)
推荐(0)
2022年9月26日
我的博客园地址
摘要: https://www.cnblogs.com/cwj202183290470/
阅读全文
posted @ 2022-09-26 22:30 曹文杰202183290470
阅读(26)
评论(1)
推荐(0)
公告