会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xrzjjy
博客园
首页
新随笔
联系
订阅
管理
2022年12月1日
实验6 模板类和文件I/O
摘要: #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x {97, 98, 99, 100, 101}; ofstream
阅读全文
posted @ 2022-12-01 15:24 xrzjjy
阅读(61)
评论(0)
推荐(0)
2022年11月27日
实验5 继承和多态
摘要: #pragma once #include<iostream> using namespace std; class MachinePets{ public: MachinePets(const string s):nickname{s} {} string get_nickname() const
阅读全文
posted @ 2022-11-27 16:33 xrzjjy
阅读(28)
评论(0)
推荐(0)
2022年11月3日
实验4 类与数组、指针
摘要: 1 #pragma once 2 #include<iostream> 3 using namespace std; 4 class vectorInt{ 5 public: 6 vectorInt(int n):size(n) { 7 cout << "construct 1 called"<<e
阅读全文
posted @ 2022-11-03 22:53 xrzjjy
阅读(30)
评论(0)
推荐(0)
2022年10月20日
实验3 数组、指针与现代C++标准库
摘要: 1 #include"Info.hpp" 2 #include<iostream> 3 #include<vector> 4 #include<iomanip> 5 using namespace std; 6 const int capacity = 100; 7 int main(){ 8 ve
阅读全文
posted @ 2022-10-20 14:13 xrzjjy
阅读(21)
评论(1)
推荐(1)
2022年10月14日
实验2 类和对象(2)
摘要: 实验结论 实验任务4 1 #pragma once 2 #include<iostream> 3 #include<cmath> 4 using namespace std; 5 class Complex{ 6 public: 7 Complex(double r=0.0,double i=0.0
阅读全文
posted @ 2022-10-14 17:14 xrzjjy
阅读(28)
评论(0)
推荐(0)
2022年9月28日
实验1 类和对象(1)
摘要: 1 #include <iostream> 2 using std::cout; 3 using std::endl; 4 5 class Point { 6 public: 7 Point(int x0 = 0, int y0 = 0); 8 Point(const Point& p); 9 ~P
阅读全文
posted @ 2022-09-28 22:19 xrzjjy
阅读(16)
评论(0)
推荐(0)
2022年9月27日
个人博客主页地址
摘要: https://www.cnblogs.com/xrzjjy/
阅读全文
posted @ 2022-09-27 12:45 xrzjjy
阅读(170)
评论(0)
推荐(0)
公告