-
task6
task1 源代码 contestant.hpp #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // -
实验六
任务一: contestant.hpp 1 #pragma once 2 #include<iomanip> 3 #include<iostream> 4 #include<iostream> 5 struct Contestant 6 { 7 long id; 8 std::string name -
实验6 文件I/O与异常处理
实验任务1 源代码 contestant.hpp 1 #pragma once 2 #include <iomanip> 3 #include <iostream> 4 #include <string> 5 6 struct Contestant { 7 long id; // 学号 8 std: -
实验六
task1: 源代码: 1 #include <algorithm> 2 #include <iostream> 3 #include <stdexcept> 4 #include <vector> 5 #include "contestant.hpp" 6 #include "utils.hpp" -
数据采集第5小组 旅宝开发经历分享
🚀 拒绝平庸:我们是如何把一个“作业”做成下一代旅行神器的? 做这个“旅宝 (Lübao)”项目的初衷其实特别简单:我们受够了做攻略时的手忙脚乱。 想象一下你平时做计划的样子:左手刷着小红书找网红店,右手开着地图看路线,还得切出去打开备忘录记时间。屏幕窗口切来切去,最后心态崩了,只想说一句:“算了 -
实验5
实验任务一 #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = ""); // 构造函数 virtual ~P -
实验5
实验1 1 #pragma once 2 3 #include <string> 4 5 // 发行/出版物类:Publisher (抽象类) 6 class Publisher { 7 public: 8 Publisher(const std::string &name_ = ""); // 构 -
实验5
1. 实验任务1 #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = ""); // 构造函数 virtual -
实验 5
task 1 Publisher.hpp 1 #pragma once 2 #include<string> 3 4 class Publisher { 5 public: 6 Publisher(const std::string& name_ = " "); 7 virtual ~Publish -
第四章作业
一、贪心策略 排序:将所有区间按照右端点从小到大排序 选点规则:从前往后遍历已排序的区间,如果当前区间的左端点大于当前已选的点,说明这个点无法覆盖当前区间,就在当前区间的右端点处放置一个新点,更新当前点的位置为当前区间的右端点 贪心选择性质分析 将区间按右端点排序后,设区间序列为 [l₁, r₁], -
算法第四次作业
1.关于选点问题的贪心策略,就是按右端点大小将区间排序后从第一个小的开始选右端点,之后若端点在区间就找下一个区间,端点不在那个区间就把那个区间右端点选上以此类推直至最后一个区间。 2.关于算法是否满足贪心选择性质,用反证法可证,前提:把区间按右端点升序排好,第一个区间是(I_1),右端点是(b_1) -
高级语言程序设计课程第十次个人作业
这个作业属于哪个课程:课程 这个作业要求在哪里:要求 学号:102500420 姓名:连骁晗 (1)编写一个程序,将一个文件的内容复制到另一个文件中。 (2)编写一个程序,统计一个文本文件中的字符数。 (3)编写一个程序,读取一个文本文件的内容,并在控制台上显示。 (4)编写一个程序,向一个文本文件 -
Python蓝桥杯第三次学习+感悟
本周学习内容:视频 22 字符串补充——视频 24 打包与解包 由于我之前学Python只是学习基础的东西,所以这些扩展的内容我都没学 现在半个小时能学到很多东西,一个一个写 不如自己实干实地的做笔记 所以就简单说一下自己的进度 感悟: 1.学习方法: 在学习蓝桥杯的课程中,我发现对于基础知识和基础 -
实验5
任务一: 1.源代码: (1)publisher.hpp: #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = -
实验5
实验任务1 源代码 #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = ""); // 构造函数 virtua -
实验五
任务一: 源代码task1.cpp #include <memory> #include <iostream> #include <vector> #include "publisher.hpp" void test1() { std::vector<Publisher *> v; v.push_b -
实验五
TASK1 publisher.cpp 点击查看代码 #include <iostream> #include <string> #include "publisher.hpp" // Publisher类:实现 Publisher::Publisher(const std::string &nam -
实验5
1.实验任务1 Publisher.cpp 点击查看代码 #include <iostream> #include <string> #include "publisher.hpp" // Publisher类:实现 Publisher::Publisher(const std::string &n -
实验05
1.实验任务1 publisher.hpp #pragma once #include<string> class Publisher{ public: Publisher(const std::string &name_=""); virtual ~Publisher()=default; pub -
OOP5
任务1 publisher.hpp #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = ""); // 构造函