-
实验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 -
实验四
task1: 问题一:连续存放。x 和 &x [0] 值相同; 问题二:按行连续存放。 x、x [0]、&x [0][0] 地址值相同。 x[1] -与x[0] 相差 16 字节(4 个 int),表示一行元素占用的字节数。 task2: 问题一:形参:intx,[x]; 实参:直接写数组x。 问题 -
task4
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 = 0; i < N; -
实验4
1.实验任务1 源代码 1 #include <stdio.h> 2 #define N 4 3 #define M 2 4 5 void test1() 6 { 7 int x[N] = {1, 9, 8, 4}; 8 int i; 9 printf("sizeof(x) = %d\n", siz -
实验4
#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\n", sizeof(x)); // 输 -
实验四
任务一: #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\n", sizeof(x)); -
实验四
任务一 源代码: 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 printf("siz -
实验四报告
实验一 源代码: 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 printf("sizeo -
# 20252920 2025-2026-2 《网络攻防实践》实践7报告
1.实践内容 (1)使用Metasploit进行Linux远程渗透攻击 任务:使用Metasploit渗透测试软件,攻击Linux靶机上的Samba服务Usermap_script安全漏洞,获取目标Linux靶机的主机访问权限。实践步骤如下: ①启动Metasploit软件,可根据个人喜好使用msf -
20251911 2025-2026-2 《网络攻防实践》实践7报告
1.实践内容 任务一:使用 Metasploit 框架对 Linux 靶机的 Samba 服务进行远程渗透。通过 usermap_script 漏洞模块,配置合适的远程 Shell 载荷,设置目标与监听参数,完成漏洞利用,最终获取靶机的主机访问权限并验证权限级别。 任务二:进行攻防对抗模拟。攻击方在 -
20254204刘俐《Python程序设计》实验三报告
20254204 2025-2026-2 《Python程序设计》实验三报告 课程:《Python程序设计》 班级: 2542 姓名: 刘俐 学号:20254204 实验教师:王志强 实验日期:2026年4月28日 必修/选修: 专选课 1.实验内容 创建服务端和客户端,服务端在特定端口监听多个客户 -
实验三
任务一 源代码 1 #include<stdio.h> 2 3 char score_to_grade(int score); 4 5 int main(){ 6 int score; 7 int grade; 8 9 while(scanf("%d",&score)!=EOF) 10 { 11 g -
实验三
task1 源代码 #include <stdio.h> char score_to_grade(int score); // 函数声明 int main() { int score; char grade; while(scanf("%d", &score) != EOF) { grade = s -
实验三
任务一 问题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) !=