-
实验5
试验任务一 1.. 函数 find_min_max 功能是判断数组中数据的最大和最小值。 2。x[0]所对应的数据 3。找到数组中最大值的地址,返回数组中最大值的地址。 4。可以。一种是下标的交换。一种元素的交换。 试验任务二 1。80个字节,s1所占字节数,s1字符串长度 2。不可以,char 【 -
实验五
实验任务1: 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 *p -
实验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, int *p -
实验5
#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); int m -
实验5
task1_1 1 #include<stdio.h> 2 #define _CRT_SECURE_NO_WARNINGS 3 #define N 5 4 void input(int x[], int n); 5 void output(int x[], int n); 6 void find_m -
作业4
问题:数轴上有n个闭区间[ai, bi]。取尽量少的点,使得每个区间内都至少有一个点(不同区间内含的点可以是同一个) 我的策略: 1.将所有区间按照右端点从小到大排序 2.初始化当前选择的点为第一个区间的右端点,计数器置为 1 3.依次检查后续每个区间,若当前区间的左端点大于已选择的点(即该区间不包 -
第四次作业
贪心策略: 1.优先选择结束时间最早的活动; 2.从第一个活动开始,每次选 “开始时间大于上一个选中活动结束时间” 的活动,直到遍历完所有活动。 证明贪心选择性质: 假设 A 是问题的一个最优解,将 A 中的区间按结束时间升序排序,设 A 中第一个区间为([sk,ek])。 情况 1:(k=1)(即 -
20232410 2025-2026-1 《网络与系统攻防技术》实验八实验报告1
Web前后端开发与网络安全测试实验报告 1. 实验内容 (1) Web前端HTML 能正常安装、启停Apache。理解HTML,理解表单,理解GET与POST方法,编写一个含有表单的HTML。 (2) Web前端javascript 理解JavaScript的基本功能,理解DOM。 在(1)的基础上 -
高级程序语言第七次作业
高级程序语言第七次作业 这个作业属于哪个课程 https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里 https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15587 学号 222200424 姓名 赵伟 -
实验4
task1 1.源代码 GradeCalc.hpp 1 #pragma once 2 3 #include <vector> 4 #include <array> 5 #include <string> 6 7 class GradeCalc { 8 public: 9 GradeCalc(cons -
20232427 2025-2026-1 《网络与系统攻防技术》实验八实验报告
一、实验目的 1.Web前端HTML。能安装启停Apache,编写含表单的HTML网页。 2.Web前端javascipt。能用JS验证表单并回显欢迎信息,测试XSS注入。 3.Web后端数据库。能安装配置MySQL,完成建库建用户建表操作。 4.Web后端数据库连接。能用PHP连接数据库,实现用户 -
20232322 2025-2026-1 《网络与系统攻防技术》实验七实验报告
一.实验内容 应用SET工具建立冒名网站 应用Ettercap进行DNS欺骗 综合运用两种方法进行钓鱼攻击 二.实验目的 理解常用网络欺骗的原理 三.实验环境 kali liunx虚拟机 Windows XP虚拟机 四.实验过程与分析 1.应用SET工具建立冒名网站 输入setoolkit,选择 1 -
实验四
实验任务1:源代码: 1 #pragma once 2 3 #include <vector> 4 #include <array> 5 #include <string> 6 7 class GradeCalc { 8 public: 9 GradeCalc(const std::string & -
高级语言程序设计第七次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/15587 学号:102500308 姓名:郭心悦 一、作业内容 (1) -
作业4
第四次作业爬虫实践报告 作业①:爬取股票数据 1.1 代码实现与运行结果 关键代码 点击查看代码 class EastMoneySpider: def __init__(self): print("正在初始化爬虫...") # 配置区域 # 1. 数据库连接配置 # 【请修改这里】:把 '12345 -
OOP-实验4
实验任务1 源代码 GradeCalc.hpp,GradeCalc.cpp,task1.cpp 点击查看代码 GradeCalc.hpp #pragma once #include <vector> #include <array> #include <string> class GradeCalc -
实验4
一、实验任务1 源代码task1 1 #include <algorithm> 2 #include <array> 3 #include <cstdlib> 4 #include <iomanip> 5 #include <iostream> 6 #include <numeric> 7 #inc -
实验4
任务1:源代码: 1 #pragma once 2 3 #include <vector> 4 #include <array> 5 #include <string> 6 7 class GradeCalc { 8 public: 9 GradeCalc(const std::string &cn -
实验四
task1: Gradecalc.hpp #pragma once #include <vector> #include <array> #include <string> class GradeCalc { public: GradeCalc(const std::string &cname); -
实验三
任务一 button.hpp #pragma once #include <iostream> #include <string> class Button { public: Button(const std::string &label_); const std::string& get_lab