-
实验5
任务一: 1.源代码: (1)publisher.hpp: #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = -
实验五
任务一: 源代码task1.cpp #include <memory> #include <iostream> #include <vector> #include "publisher.hpp" void test1() { std::vector<Publisher *> v; v.push_b -
实验5
实验任务1 源代码 #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = ""); // 构造函数 virtua -
高级语言程序第九次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:102500415 姓名:林帅前 1. 2. 3. 4 -
实验五
任务一: #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = ""); // 构造函数 virtual ~Pu -
Section four Homework
最近在刷算法题时,又遇到了一道非常经典的贪心题目:给定若干闭区间,求最少需要多少个点,使得每个区间至少包含一个点。这道题看似简单,却完美展现了贪心策略的用处。 问题描述 输入: \(n\) 个闭区间 \([l_i, r_i]\)(\(1 \le i \le n\)) 输出: 最少需要放置多少个点,使 -
实验6
实验任务1 源代码: 点击查看contestant.hpp #pragma once #include <<iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string na -
算法第五章作业
一、最小重量机器设计问题的回溯法分析问题背景:需为机器选择 n 个部件,每个部件有 m 个可选供应商,第 i 个部件选第 j 个供应商的重量为(w[i][j])、成本为(c[i][j]),要求总成本不超过 C,求最小总重量。 1.1 解空间解空间是长度为 n 的向量集合:((x_1, x_2, .. -
实验6
4.试验任务4 task4.c 点击查看代码 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sal -
实验6
实验任务4 task4.c源代码 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_pri -
实验6
实验任务4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 i -
实验6
实验任务4 #include <stdio.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double sales_price; // 售价 i -
task6
task1 源代码 contestant.hpp #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // -
实验6
一、实验任务1 源代码contestant.hpp 1 #pragma once 2 #include<iomanip> 3 #include<iostream> 4 #include<string> 5 struct Contestant{ 6 long id; 7 std::string nam -
数据采集第5小组 旅宝开发经历分享
🚀 拒绝平庸:我们是如何把一个“作业”做成下一代旅行神器的? 做这个“旅宝 (Lübao)”项目的初衷其实特别简单:我们受够了做攻略时的手忙脚乱。 想象一下你平时做计划的样子:左手刷着小红书找网红店,右手开着地图看路线,还得切出去打开备忘录记时间。屏幕窗口切来切去,最后心态崩了,只想说一句:“算了 -
OOP实验五
实验任务一 源代码: #include <iostream> #include <string> #include "publisher.hpp" // Publisher类:实现 Publisher::Publisher(const std::string &name_): name {name_ -
实验5
实验任务1 Publisher.hpp #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = ""); // 构 -
实验5
task1: 1.源代码 publisher.hpp 1 #pragma once 2 3 #include <string> 4 5 // 发行/出版物类:Publisher (抽象类) 6 class Publisher { 7 public: 8 Publisher(const std::st -
实验5
##实验任务1 #代码 publisher.hpp 1 #pragma once 2 3 #include <string> 4 5 // 发行/出版物类:Publisher (抽象类) 6 class Publisher { 7 public: 8 Publisher(const std::str -
实验5
一 #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string& name_ = ""); // 构造函数 virtual ~Publi