-
实验六
实验任务1 源代码contestant.hpp 1 #pragma once 2 #include <iomanip> 3 #include <iostream> 4 #include <string> 5 struct Contestant { 6 long id; // 学号 7 std::st -
实验6
task4 1 #define _CRT_SECURE_NO_WARNINGS 2 #include <stdio.h> 3 #define N 10 4 5 typedef struct { 6 char isbn[20]; // isbn号 7 char name[80]; // 书名 8 ch -
oop-实验6
task1 contestant.hpp 1 #pragma once 2 3 #include<iomanip> 4 #include<iostream> 5 #include<string> 6 7 struct Contestant{ 8 //学号/姓名/专业 9 long id; 10 st -
实验六
实验任务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 -
高级语言程序设计课程第十次个人作业
高级语言程序设计课程第十次个人作业 这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx/ 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号:1025004 -
第四次作业
问题描述: 给定数轴上的 ( n ) 个闭区间 ([a_i, b_i]),要求选择尽可能少的点,使得每个区间内至少有一个点。不同区间内可以选择相同的点。我们需要设计一个算法来解决这个问题,并证明算法满足贪心选择性质。 贪心策略: 我们可以采用贪心算法来选择点,具体策略如下: 区间排序:首先,将所有区 -
高级语言程序设计课程第十次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号:102500332 姓名:郑雷 1 2 3 4 5 6 -
高级语言程序设计第十次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号:102500308 姓名:郭心悦 (1)编写一个程序, -
实验6 文件I/O与异常处理
Task1 1.源代码: #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // 姓名 std::str -
高级语言程序设计课程第十次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号:102400102 姓名:方韵希 作业内容 (1)编写 -
高级语言程序设计第十次作业
高级语言程序设计第十次作业 作业所属课程:我的班级 作业内容:第十次作业 姓名:黄洁琳 学号102500306 1 编写一个程序,将一个文件的内容复制到另一个文件中。 2 编写一个程序,统计一个文本文件中的字符数。 fread返回的是一次读取的字符数,一次读取把一个数组尽可能装满 这里字符数是14的 -
第四次作业
对贪心算法的理解 贪心算法是每一步都做局部最优选择,期望通过一系列局部最优得到全局最优解;仅当问题满足贪心选择性质和最优子结构性质时有效,其优势是高效、易实现。 -
高级语言程序设计课程第十次个人作业
高级语言程序设计课程第十次个人作业 这个作业属于哪个课程 https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里 https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15596 学号 222200424 -
实验6
任务1: 源代码: contestant.hpp #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // -
Python蓝桥杯第三次学习+感悟
本周学习内容:视频 22 字符串补充——视频 24 打包与解包 由于我之前学Python只是学习基础的东西,所以这些扩展的内容我都没学 现在半个小时能学到很多东西,一个一个写 不如自己实干实地的做笔记 所以就简单说一下自己的进度 感悟: 1.学习方法: 在学习蓝桥杯的课程中,我发现对于基础知识和基础 -
实验6_CPP
任务1 源代码 contestant.hpp #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // 姓 -
实验6 文件I/O与异常处理
实验任务一: 源代码: #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string name; // 姓名 std::stri -
实验六
实验 6:文件 I/O 与异常处理 说明 阅读文档 请仔细阅读,明确任务要求、提交方式与截止时间。 实验任务说明 任务 1:验证性实验。读懂、运行、理解代码,掌握 I/O 流、异常处理基础操作。 任务 2:设计性实验。参照验证性任务,完成设计、编码。 实践建议 先独立思考、编码,再查工具;缺少“亲手 -
实验六
实验任务一 代码 contestant.hpp 点击查看代码 #pragma once #include <iomanip> #include <iostream> #include <string> struct Contestant { long id; // 学号 std::string na -
OOP-实验6
实验任务1 源代码task1 1 // 结构体Contestant定义及其重载运算符函数>>和<<实现 2 3 #pragma once 4 5 #include <iomanip> 6 #include <iostream> 7 #include <string> 8 9 struct Conte