-
实验1
任务1. 代码:#include include include include unsigned char func(unsigned char c); void test1(); void test2(); int main() { std::cout << "测试1: 字符串大小写转换\n"; -
第二章实践作业
一、分治算法(快速选择) 选基准pivot划分数组,小于等于pivot放左边,大于放右边。判断基准在当前区间的位次: 1.位次=k:直接返回pivot; 2.位次>k:递归左区间找第k小; 3.位次<k:递归右区间,找第(k - 位次)小。 二、时间复杂度 最好:O(n),每次划分均匀,总工作量是n -
实验1
实验结论 任务1 源代码 task1.c 点击查看代码 #include <stdio.h> int main() { printf(" 0 \n"); printf("<H>\n"); printf("I I\n"); return 0; } 垂直方向 源代码task1_1.c 点击查看代码 #i -
实验1
任务一 源代码task1_1.c 点击查看代码 #include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); printf(" O \n"); printf("<H>\n"); printf("I -
实验1
声明 不知道为什么下载的代码中的中文成乱码了,所以代码中的中文有所缺失 任务1 源代码 task1.1 #include<stdio.h> int main(){ printf(" 0 0\n"); printf("<H> <H>\n"); printf(" I I I I\n"); return -
实验一
task1.1 #include <stdio.h>int main(){printf(" o o \n"); printf("<H> <H>\n");printf("I I I I\n"); return 0; } task1.2 #include <stdio.h>int main(){prin -
实验1
任务1 源代码1 点击查看代码 #include <stdio.h> int main(){ int i=2; while(i--){ printf(" o \n"); printf("<H>\n"); printf("I I\n"); } return 0; } + 运行截图1 源代码2 点击查看 -
实验1
任务1 源代码1 #include<stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0; } 运行截图 源代码2 #include<stdio.h> int main() { printf -
实验1
任务一 +源代码task1.c // 打印一个字符小人 #include <stdio.h> int main() { printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 0; } task1_1.c image #include<st -
实验1
task1 #include<stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); return 0; } task2 #include <stdio.h> int main() { double a, b, -
实验1
实验结论 1. 实验任务1 源代码 #include <iostream> #include <string> #include <vector> #include <algorithm> // 模板函数声明 template<typename T> void output(const T &c); -
实验1
实验任务1 源代码: // 现代C++标准库、算法库体验 // 本例用到以下内容: // 1. 字符串string, 动态数组容器类vector、迭代器 // 2. 算法库:反转元素次序、旋转元素 // 3. 函数模板、const引用作为形参 #include <iostream> #include -
实验1
任务1 task1_1.c源代码 #include <stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); printf(" o \n"); printf("<H>\n"); printf("I I\n"); -
实验一
任务 源代码 // 现代C++标准库、算法库体验 // 本例用到以下内容: // 1. 字符串string, 动态数组容器类vector、迭代器 // 2. 算法库:反转元素次序、旋转元素 // 3. 函数模板、const引用作为形参 #include <iostream> #include <st -
实验1任务
任务1 1 //垂直方向打印两个字符小人 2 #include <stdio.h> 3 int main() 4 { 5 //第一个小人 6 printf(" o \n"); 7 printf("<H>\n"); 8 printf("I I\n"); 9 //第二个小人 10 printf(" o -
20242323 2026-2027-1 《网络与系统攻防技术》实验二实验报告
20242323 2026-2027-1 《网络与系统攻防技术》实验二实验报告 1.基础知识 1.1 后门的生命周期与反弹连接机制 后门(Backdoor)是绕过系统正常认证流程,为攻击者提供远程控制通道的程序。一个完整的后门通常需要经历:生成、投递、启动(驻留)、隐藏四个阶段。 在网络通信方向上, -
算法第二章实践作业
1.用自然语言描述找第k小的数的分治算法: 从一堆数里随便挑一个数当“基准”。然后把所有数分成三堆:比基准小的、和基准一样大的、比基准大的。数一数“比基准小”的那堆有几个数, 如果k不超过这堆的个数,说明第k小的数就在“小的那堆”里,那就只去那堆继续找第k小。 如果k比这堆多,但没超过“小的个数 + -
算法第二章实践作业——第 k 小元素的分治算法
算法第二章实践作业——第 k 小元素的分治算法 一、请用自然语言或伪代码描述找第 k 小的数的分治算法 1. 问题描述 给定一个包含 n 个整数的无序数组,以及一个整数 k(1 ≤ k ≤ n),要求找出数组中第 k 小的元素。 例如: 数组 A = [7, 2, 9, 4, 1, 6, 3],k -
高级语言程序设计第六次个人作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj 这个作业要求在哪里: https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/homework/16752 学号:0102600131 姓名: -
六
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/2026gjyycxsj/homework/16752 学号:0102600234 姓名:赖