会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
彭鑫宇
博客园
首页
新随笔
联系
订阅
管理
2022年12月
实验六
摘要: task3_1.cpp: #include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x{ 97, 98, 99, 100, 1
阅读全文
posted @ 2022-12-02 14:02 彭鑫宇
阅读(47)
评论(0)
推荐(0)
2022年11月
实验五
摘要: task4.cpp: #pragma once #include<iostream> #include<string> using namespace std; class MachinePets{ public: MachinePets(const string s) :nickname{ s }
阅读全文
posted @ 2022-11-28 22:36 彭鑫宇
阅读(34)
评论(0)
推荐(0)
实验四 类与数组,指针
摘要: 实验任务5: task5.hpp #pragma once #include<iostream> #define MAXSIZE 10000 using namespace std; class vectorInt { public: //构造函数与析构函数 vectorInt(int n); ve
阅读全文
posted @ 2022-11-03 19:39 彭鑫宇
阅读(70)
评论(0)
推荐(0)
2022年10月
实验三
摘要: 实验任务5: task5.hpp: #pragma once #include <iostream> #include <vector> #include <string> using namespace std; class Info{ public: Info(string name, stri
阅读全文
posted @ 2022-10-19 16:38 彭鑫宇
阅读(144)
评论(0)
推荐(0)
实验二 类与对象
摘要: 实验任务4: task4.hpp: #pragma once #include<iostream> #include<math.h> using namespace std; class Complex { public: Complex() :real{ 0 }, imag{ 0 } {} ~Co
阅读全文
posted @ 2022-10-13 23:44 彭鑫宇
阅读(29)
评论(0)
推荐(0)
2022年9月
实验一
摘要: 实验任务1 task1_1: #include <iostream> #include <string> #include <vector> int main() { using namespace std; string s1; string s2{ "c plus plus" }; string
阅读全文
posted @ 2022-09-29 18:14 彭鑫宇
阅读(125)
评论(0)
推荐(0)
公告