会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
jane-d
博客园
首页
新随笔
联系
订阅
管理
2022年12月1日
实验六 模板类和文件
摘要: task3 //task3_1.cpp#include <iostream> #include <fstream> #include <array> #define N 5 int main() { using namespace std; array<int, N> x{ 97, 98, 99,
阅读全文
posted @ 2022-12-01 15:37 言黎小姐
阅读(16)
评论(0)
推荐(0)
2022年11月27日
实验五 继承和多态
摘要: task4代码: //pets.hpp #pragma once #include<iostream> using namespace std; class MachinePets { public: MachinePets(const string s) :nickname(s) {} virtu
阅读全文
posted @ 2022-11-27 23:06 言黎小姐
阅读(21)
评论(0)
推荐(0)
2022年11月6日
实验四 类与数组、指针
摘要: 实验任务五代码截图: vectorInt.hpp: 1 #pragma once 2 3 #include<iostream> 4 #include<cassert> 5 using namespace std; 6 7 class vectorInt 8 { 9 public: 10 vector
阅读全文
posted @ 2022-11-06 15:07 言黎小姐
阅读(28)
评论(0)
推荐(0)
2022年10月23日
实验三 数组、指针与现代C++标准库
摘要: 实验五代码: Info.hpp 1 #pragma once 2 3 #include<iostream> 4 #include<string> 5 #include<iomanip> 6 7 using std::string; 8 using std::cout; 9 using std::en
阅读全文
posted @ 2022-10-23 15:30 言黎小姐
阅读(13)
评论(0)
推荐(0)
2022年10月14日
实验二 类和对象(2)
摘要: 任务四代码: Complex.hpp文件源码: 1 #pragma once 2 3 //Complex类的定义 4 #include<iostream> 5 #include<cmath> 6 7 using namespace std; 8 9 class Complex 10 { 11 pub
阅读全文
posted @ 2022-10-14 23:00 言黎小姐
阅读(34)
评论(0)
推荐(0)
2022年9月29日
实验一 类和对象(1)
摘要: 任务二源代码: 1 //task2.cpp 2 3 #include<iostream> 4 using std::cout; 5 using std::endl; 6 7 //定义Point类 8 class Point 9 { 10 public: 11 Point(int x0=0,int y
阅读全文
posted @ 2022-09-29 23:50 言黎小姐
阅读(36)
评论(0)
推荐(0)
公告