-
高级语言程序设计课程第九次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:<052301346> 姓名:<郑积超> 作业内容 -
实验五
实验任务一 代码 publisher.hpp 点击查看代码 #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = -
实验5
1.实验任务1 #include <stdio.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], int n, int *pmin, int *pmax -
实验5
task 1-1 点击查看代码 #include <stdio.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], int n, int *pmin, i -
高级语言程序设计课程第九次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:102500334 姓名:吴俊杰 1.声明一个结构体类 -
算法第四章作业
一、选点问题解答 最优贪心策略: (1)排序:所有区间按右端点非降序排列(核心关键)。 (2)初始:选第一个区间的右端点作为首个选点。 (3)遍历:依次检查后续区间,若当前区间不包含最后一个已选点(左端点>已选点),选当前区间右端点为新选点,选点数加一,直至所有区间被覆盖,即全部遍历完。 贪心选择性 -
第五次团队作业:项目的测试与发布
团队作业5——校园点评项目的测试与发布(Alpha版本) 一.项目信息 项目 内容 所属课程 https://edu.cnblogs.com/campus/gdgy/Class12Grade23ComputerScience 作业要求 https://edu.cnblogs.com/campus/g -
第四章作业
一、选点问题分析(经典区间选点问题) 问题定义 给定若干个闭区间 [a_i, b_i],要求选择最少数量的点,使得每个区间至少包含一个选点。 贪心策略 核心策略:按区间的右端点从小到大排序,依次遍历每个区间;若当前区间未被已选点覆盖,则选择该区间的右端点作为新的选点。 具体步骤: 将所有区间按右端点 -
高级语言程序设计课程第九次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:102500305 姓名:赖晓娟 一.声明一个结构体 -
高级语言程序设计第十次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号:102500401 姓名:林含悦 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 2 3 #include <string> 4 5 // 发行/出版物类:Publisher (抽象类) 6 class Publisher { 7 public: 8 Publisher(const std::string& name_ = "") -
实验6
任务1: contestant.hpp #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // 姓名 s -
实验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:: -
Test6
任务一 源代码 contestant.hpp 点我展开代码 #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string nam -
高级语言程序设计课程第十次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx/ 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号:102500421 姓名:陈浩宇 (1)编写一个程 -
OOP实验五
实验任务一 源代码: #include <iostream> #include <string> #include "publisher.hpp" // Publisher类:实现 Publisher::Publisher(const std::string &name_): name {name_ -
实验五
任务一: 源代码task1.cpp #include <memory> #include <iostream> #include <vector> #include "publisher.hpp" void test1() { std::vector<Publisher *> v; v.push_b -
实验5
任务1: #include <iostream> #include <string> #include "publisher.hpp" // Publisher类:实现 Publisher::Publisher(const std::string &name_): name {name_} { } -
实验5 多态
任务1: 代码 #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = ""); // 构造函数 virtual