-
团队作业5——测试与发布
项目 内容 所属课程 https://edu.cnblogs.com/campus/gdgy/Class12Grade23ComputerScience 作业要求 https://edu.cnblogs.com/campus/gdgy/Class12Grade23ComputerScience/ho -
oop-实验5
task1 publisher.hpp 1 #pragma once 2 3 #include<iostream> 4 #include<string> 5 6 //发行/出版物类:Publisher(抽象类) 7 class Publisher{ 8 public: 9 Publisher(con -
实验5
实验任务1: Publisher.hpp: #pragma once #include<stdio.h> class Publsher{ public: Publisher(const std::string &name_=""); virtual ~Publisher()=default; pub -
实验5 多态
实验任务1 源代码: #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = ""); // 构造函数 virtu -
高级语言程序设计课程第九次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:102500333 姓名:陈俊荣 1.声明一个结构体 -
第四章作业
我的贪心策略: 为了减少选点,尽量选择一个点能占据多个位置的,这样子就是选最右边的点,通过循环每次选择最右侧的点,如果第i个最右侧的点大于第i+1个最左侧的点,计数器就加1,同时从第i+1个最右侧的点开始 时间复杂度:O(n log n) 对贪心算法的理解: 贪心算法就是在全局问题中分解出若干个单一 -
实验5 多态
实验任务一: 源代码: 1 #pragma once 2 3 #include <string> 4 5 // 发行/出版物类:Publisher (抽象类) 6 class Publisher { 7 public: 8 Publisher(const std::string& name_ = " -
实验五
任务1: 任务1代码: 1 #pragma once 2 3 #include <string> 4 5 // 发行/出版物类:Publisher (抽象类) 6 class Publisher { 7 public: 8 Publisher(const std::string &name_ = " -
实验五
实验五 实验任务一 源代码: #include <memory> #include <iostream> #include <vector> #include "publisher.hpp" void test1() { std::vector<Publisher *> v; v.push_back -
第四章作业
一、选点问题分析(经典区间选点问题) 问题定义 给定若干个闭区间 [a_i, b_i],要求选择最少数量的点,使得每个区间至少包含一个选点。 贪心策略 核心策略:按区间的右端点从小到大排序,依次遍历每个区间;若当前区间未被已选点覆盖,则选择该区间的右端点作为新的选点。 具体步骤: 将所有区间按右端点 -
高级语言程序设计课程第九次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:102500332 姓名:郑雷 1 2 3 4 5 6 -
高级语言程序设计课程第九次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:102400102 姓名:方韵希 声明一个结构体类型, -
NUIST《程序设计基础》 实验5
第五次实验课~ Task1 <task1_1.c> 源代码 点击查看代码 #include <stdio.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[] -
高级语言程序设计课程第九次个人作业
高级语言程序设计课程第九次个人作业 这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:102500120 -
实验5
实验任务1 1-1 源代码 1 #include <stdio.h> 2 #define N 5 3 4 void input(int x[], int n); 5 void output(int x[], int n); 6 void find_min_max(int x[], int n, in -
实验5
1 #include <stdio.h> 2 #define N 5 3 4 void input(int x[], int n); 5 void output(int x[], int n); 6 void find_min_max(int x[], int n, int *pmin, int * -
实验5
实验任务1 task 1_1 1 #define _CRT_SECURE_NO_WARNINGS 2 #include <stdio.h> 3 #include<stdlib.h> 4 #include<string.h> 5 6 #define N 5 7 8 void input(int x[] -
实验5
实验任务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); -
实验五
任务一 1.c 点击查看代码 #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, in -
c++实验五
实验任务一: 1 #pragma once 2 3 #include <string> 4 5 // 发行/出版物类:Publisher (抽象类) 6 class Publisher { 7 public: 8 Publisher(const std::string &name_ = ""); /