会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xiaoshuai66
博客园
首页
新随笔
联系
订阅
管理
2022年12月
实验6 模板类和文件IO
摘要: 一、实验任务三 1.源代码: task3_1.cpp #include<iostream> #include<fstream> #include<array> #define N 5 int main(){ using namespace std; array<int,N>x{97,98,99,10
阅读全文
posted @ 2022-12-04 20:23 小帅不爱摆烂
阅读(46)
评论(0)
推荐(0)
2022年11月
实验5 继承和多态
摘要: 一、实验任务4 1.源代码: pets.hpp #pragma once #include<iostream> using namespace std; class MachinePets{ public: MachinePets(const string s): nickname{s}{} ~Ma
阅读全文
posted @ 2022-11-27 18:06 小帅不爱摆烂
阅读(40)
评论(0)
推荐(0)
实验四 类与数组、指针
摘要: 一.实验任务1-4 总结:通过完成实验任务1-4,我对深复制和浅复制有了更加深刻的印象,加深对指针、引用作为形参用法的理解,理解了参数传递的过程。 二.实验任务5 1.源代码: (1)vectorInt.hpp #pragma once #include<iostream> #include<cas
阅读全文
posted @ 2022-11-06 21:37 小帅不爱摆烂
阅读(51)
评论(0)
推荐(0)
2022年10月
实验三
摘要: 实验3数组、指针与现代c++标准库 一、task5 1.源代码: (1)Info.cpp #include<iostream> #include<string> #include<iomanip> using namespace std; class info { public: info(stri
阅读全文
posted @ 2022-10-24 13:23 小帅不爱摆烂
阅读(24)
评论(0)
推荐(0)
实验二 类和对象(2)
摘要: 一.实验任务4 1.源代码: Complex.hpp: #pragma once #include<cmath> #include<iostream> using namespace std; class Complex{ public: Complex(double m=0,double n=0)
阅读全文
posted @ 2022-10-18 14:17 小帅不爱摆烂
阅读(40)
评论(0)
推荐(0)
2022年9月
第一次实验
摘要: 实验一:类和对象 Task 2 #include<iostream> using std::cout; using std::endl; class Point{ public: Point(int x0=0,int y0=0); Point(const Point&p); ~Point()=def
阅读全文
posted @ 2022-09-28 23:13 小帅不爱摆烂
阅读(45)
评论(0)
推荐(0)
公告