-
实验三
任务一 问题1:作用是把对应分数段的分数转化为对应的等级,形式参数类型是整型,返回值类型是字符型 问题2:1,A是单个字符要用单引号,双引号是字符串;2,语句中缺少break,代码逻辑错误 任务二 问题1:计算输入的数的各个位置上数的和 问题2:能实现,两个代码一个用的是迭代,另一个用的是递归。 任 -
实验3
任务1 源代码 1 #include <stdio.h> 2 3 char score_to_grade(int score); // 函数声明 4 5 int main() { 6 int score; 7 char grade; 8 9 while(scanf("%d", &score) != -
20251910 2025-2026-2 《网络攻防实践》第6次作业
20251910 2025-2026-2 《网络攻防实践》实践第6次作业 目录20251910 2025-2026-2 《网络攻防实践》实践第6次作业1.实践内容1.1实践要求1.2 相关知识2.实践过程2.1任务要求及实践思路2.1.1 利用MS08-067漏洞,对windows靶机实施远程渗透2 -
实验三
四、实验结论 实验任务1 1 #include <stdio.h> 2 char score_to_grade(int score); // 函数声明 3 int main() { 4 int score ; 5 char grade ; 6 while(scanf("%d", &score) != -
实验3
#include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score_to_gr -
实验三
#include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = score_to_gr -
20251906 2025-2026-2 《网络攻防实践》第七周作业
1.实践内容 (1)使用Metasploit进行Linux远程渗透攻击 任务:使用Metasploit渗透测试软件,攻击Linux靶机上的Samba服务Usermap_script安全漏洞,获取目标Linux靶机的主机访问权限。实践步骤如下: ①启动Metasploit软件,可根据个人喜好使用msf -
20254127 实验三《Python程序设计》实验报告
20254127 2025-2026-2 《Python程序设计》实验三报告 课程:《Python程序设计》 班级:2541 姓名:汤中凯 学号:20254127 实验教师:王志强 实验日期:2026年4月28日 必修/选修:专选课 1.实验内容 创建服务端和客户端,服务端在特定端口监听多个客户请求 -
实验4
实验1 问题1:一维数组x在内存中是否连续存放?x和&x[0]的值相同吗? 一维数组在内存中是连续存放的。数组的所有元素在内存中占据一段连续的地址空间,元素按下标顺序依次排列,相邻元素的地址差等于单个元素的字节大小; 两者的值完全相同 问题2:二维数组x在内存中是否按行连续存放?x、x[0]和&x[ -
实验四
实验任务1 task1.c源代码 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 5 void test1() { 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 9 // 输出数组x占用的内存字节数 10 print -
实验4
试验任务1 代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define N 4 4 #define M 2 5 6 void test1(){ 7 int x[N] = {1,9,8,4}; 8 int i; 9 10 printf("sizeof -
实验4
一、实验结论 1.task1 代码 #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = { 1, 9, 8, 4 }; int i; // 输出数组x占用的内存字节数 printf("sizeof(x) = %d\ -
实验4
实验1 源代码 view code #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; printf("sizeof(x) = %d\n", sizeof(x)); for -
实验四
实验1 代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define N 4 4 #define M 2 5 6 void test1() { 7 int x[N] = {1, 9, 8, 4}; 8 int i; 9 10 // 输出数组x占用的内 -
实验4
实验任务1 源代码 1 #include <stdio.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; printf("sizeof(x) = %d\n", sizeof(x)); for (i = -
20254121 2025-2026-2 《Python程序设计》实验3报告
课程:《Python程序设计》 班级: 2541 姓名: 何若水 学号:20254121 实验教师:王志强 实验日期:2026年4月28日 必修/选修: 专选课 ## 1.实验内容 : 创建服务端和客户端,服务端在特定端口监听多个客户请求。客户端和服务端通过Socket套接字(TCP/UDP)进行通 -
实验4
实验任务1 #include <stdlib.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; // 输出数组x占用的内存字节数 printf("sizeof(x) = %d\n", sizeof(x) -
实验四
任务一 源代码 复制代码 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 #include<stdlib.h> 5 void test1() { 6 int x[N] = {1, 9, 8, 4}; 7 int i; 8 9 // 输出数组x占用 -
实验四
task1 `#include <stdio.h> define N 4 define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; printf("sizeof(x) = %d\n", sizeof(x)); for (i = 0; i < -
实验4
#define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <stdlib.h> #define N 4 #define M 2 void test1() { int x[N] = {1, 9, 8, 4}; int i; printf