-
高级语言程序设计课程第九次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:102500323 姓名:黄铭昊 一、声明一个结构体类 -
算法第四次作业
我的贪心策略: 将所有区间按照右端点b从小到大排序;选择第一个区间的右端点作为第一个点,遍历后续区间,如果当前区间包含已选择的点,跳过;否则,选择当前区间的右端点作为新点。 我对贪心算法的理解: 贪心算法的核心思想:局部最优选择:每一步都做出当前看起来最好的选择;无后效性:当前选择不影响后续问题的结 -
实验5
publisher.h #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = ""); // 构造函数 virt -
Python蓝桥杯第二次学习
本周学习内容:视频 16 类与内置类型——视频 19 可变与不可变对象 进度问题:由于这周有4级考试,这几节课也比较长,很多是我没学的,而且由于上周只是看了视频,没有做笔记,这周刚开始做,所以进度比较慢 一:新内容 1:@classmethod 操作类本身的方法 2:@staticmethod静态方 -
高级语言程序设计课程第九次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:102500327 姓名:李文涛 1. 2. 3. 4 -
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[] -
实验5
task1_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
实验5 任务1 task1 ans1:find_min_max的用来将最大和最小值用指针指出后供再输出 ans2:当运行到45行时指向于x[0];也就是第一个数字 task2 ans1:找出数组最大值;最大值所在项的地址 ans2:可以 任务2 task1 ans1:s1大小为80,sizeof计算 -
实验五
任务一: (1)计算数组a[N]中的最大数和最小数 (2)pmin->&min pmax->&max (1)函数 find_max 功能是计算数组a[N]中的最大数;返回的是最大数的地址 (2)可以 任务二: (1)s1的大小是80; sizeof(s1) 计算的是数组s1所占的内存; strlen -
实验五 多态
任务1 publisher.hpp #pragma once #include <string> class Publisher { public: Publisher(const std::string &name_ = ""); virtual ~Publisher() = default; p -
高级语言程序设计课程第九次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:102500328 姓名:刘宇桓 声明一个结构体类型, -
高级语言程序设计课程第九次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:102500427 姓名:廖伦哲 1.声明一个结构体类 -
高级语言程序设计课程第九次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx?filter=homework 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:102500422 -
实验5 多态
Task1 publisher.hpp #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = ""); // 构 -
实验五
实验五 实验任务一 源代码: #include <memory> #include <iostream> #include <vector> #include "publisher.hpp" void test1() { std::vector<Publisher *> v; v.push_back -
实验5
实验任务1: 源代码: 点击查看publisher.cpp #include <iostream> #include <string> #include "publisher.hpp" // Publisher类:实现 Publisher::Publisher(const std::string & -
高级语言程序设计课程第九次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:102500413 姓名:陈帅 声明一个结构体类型,用 -
实验5 多态
实验任务一: 源代码: 1 #pragma once 2 3 #include <string> 4 5 // 发行/出版物类:Publisher (抽象类) 6 class Publisher { 7 public: 8 Publisher(const std::string& name_ = " -
实验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 #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);