-
实验6
任务4 1 #include <stdio.h> 2 #include<string.h> 3 4 #define N 10 5 6 7 typedef struct { 8 char isbn[20]; // isbn号 9 char name[80]; // 书名 10 char author[ -
实验6
task4 #include <stdio.h> #include <stdlib.h> #define N 10 typedef struct { char isbn[20]; // isbn号 char name[80]; // 书名 char author[80]; // 作者 double -
实验6
实验任务4 1 #include <stdio.h> 2 #define N 10 3 4 typedef struct { 5 char isbn[20]; // isbn号 6 char name[80]; // 书名 7 char author[80]; // 作者 8 double sale -
实验6
实验任务1 源代码 1 #define _CRT_SECURE_NO_WARNINGS 2 #include <stdio.h> 3 #include <string.h> 4 #define N 3 5 6 typedef struct student { 7 int id; 8 char nam -
实验6
实验任务1 test1.c #include <stdio.h> #include <string.h> #define N 3 // 运行程序输入测试时,可以把N改小一些输入测试 typedef struct student { int id; // 学号 char name[20]; // 姓名 -
高级语言程序设计课程第十次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号:102500315 姓名:刘雨鉴 (1)编写一个程序 -
实验5 多态
任务1: 代码 #pragma once #include <string> // 发行/出版物类:Publisher (抽象类) class Publisher { public: Publisher(const std::string &name_ = ""); // 构造函数 virtual -
实验6
任务1:源代码: 1 #pragma once 2 #include <iomanip> 3 #include <iostream> 4 #include <string> 5 6 struct Contestant { 7 long id; // 学号 8 std::string name; // -
实验6
1.实验任务1 此部分书写内容: 给出contestant.hpp, utils.hpp, task1.cpp源代码及运行结果截图(屏幕输出截图,及,生成数据文件ans.txt截图) contestant.hpp 点击查看代码 #pragma once #include <iomanip> #inc -
实验六
实验任务1: contestant.hpp 1 #pragma once 2 #include <iomanip> 3 #include <iostream> 4 #include <string> 5 6 struct Contestant { 7 long id; // 学号 8 std::st -
实验 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 -
实验5 多态
实验5 实验任务1 源代码 1 #pragma once 2 3 #include <string> 4 5 // 发行/出版物类:Publisher (抽象类) 6 class Publisher { 7 public: 8 Publisher(const std::string &name_ = -
高级语言程序设计课程第十次个人作业
这个作业属于哪个课程:课程 这个作业要求在哪里:要求 学号:102500420 姓名:连骁晗 (1)编写一个程序,将一个文件的内容复制到另一个文件中。 (2)编写一个程序,统计一个文本文件中的字符数。 (3)编写一个程序,读取一个文本文件的内容,并在控制台上显示。 (4)编写一个程序,向一个文本文件 -
c++ 5
##task1 #代码 1 #include <iostream> 2 #include <string> 3 #include "publisher.hpp" 4 5 // Publisher类:实现 6 Publisher::Publisher(const std::string &name_) -
算法第四次作业
1.关于选点问题的贪心策略,就是按右端点大小将区间排序后从第一个小的开始选右端点,之后若端点在区间就找下一个区间,端点不在那个区间就把那个区间右端点选上以此类推直至最后一个区间。 2.关于算法是否满足贪心选择性质,用反证法可证,前提:把区间按右端点升序排好,第一个区间是(I_1),右端点是(b_1) -
第四章作业
贪心算法核心解析与选点问题应用 一、贪心算法核心理解 贪心算法是一种逐步局部最优决策的启发式算法,每一步都选择当前状态下最优(或较优)的选项,不回溯、不考虑未来全局影响,最终期望通过局部最优累积得到全局最优,核心是贪心策略设计与全局最优可行性验证。 二、选点问题(经典区间覆盖类)分析 问题定义(标准 -
高级语言程序设计课程第八次个人作业
班级链接:https://edu.cnblogs.com/campus/fzu/gjyycx/ 作业链接:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15590 姓名:周悦铃· 学号:102500403 第一题:读取字符 注意:getchar -
数据采集第四次作业
目录 作业一 运行代码及结果-1 心得体会-1 作业二 运行代码及结果-2 心得体会-2 作业三 运行代码及结果-3 心得体会-3 作业一: 运行代码及结果-1 关键代码 1、首先要去网站上确认目标网站结构,以沪深 A 股页面为例 观察网页结构,可以发现找到所有的目标数据都位于class属性为quo -
work9
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15595 学号:102500331 姓名:余武 1.声明一个结构体类型 -
Python蓝桥杯第二次学习
本周学习内容:视频 16 类与内置类型——视频 19 可变与不可变对象 进度问题:由于这周有4级考试,这几节课也比较长,很多是我没学的,而且由于上周只是看了视频,没有做笔记,这周刚开始做,所以进度比较慢 一:新内容 1:@classmethod 操作类本身的方法 2:@staticmethod静态方