实验七
实验5
task1.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 *pmax ......
实验5
一、1-1、① 使最大值、最小值赋值到对应指针变量 ②全部指向 X首元素地址 1-2、①最大值地址 ②可以 二、2-1、①24 数组s1占用字节数 数组s1长度 ②不能 数组s1没有初值和大小,不能正常创建 ③是 2-2、①字符串 “。。。happy” 的地址 指针变量s1的大小 字符串 “。。。h ......
实验5_C语言指针应用编程
1.task_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 ......
实验5_c语言指针应用编程
task1_1 #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x ......
实验5
四、实验结论1. 实验任务1task1_1.c程序源码,和,运行结果截图 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 ......
实验五
任务一 1.1 代码 1 void find_min_max(int x[], int n, int *pmin, int *pmax); 2 3 int main() { 4 int a[N]; 5 int min, max; 6 7 printf("录入%d个数据:\n", N); 8 inpu ......
实验五
task1.1 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int ......
实验5
task1_1.c源码 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 ......
实验五
实验一 找到最大最小的数; 都指向x(a)数组首元素; 找出数组中最大值; 不可以,作用域结束,函数内的数组所占内存空间释放,指针变为野指针; 实验二: s1的大小是24;sizeof是数组所占字节数;strlen统计字符个数不算‘\0’; 不可以,s1的地址是const类型,而后面的字符串返回的是 ......
实验5
实验1 1 #include <stdio.h> 2 #include<stdlib.h> 3 #define N 5 4 5 void input(int x[], int n); 6 void output(int x[], int n); 7 void find_min_max(int x[] ......
实验5
实验5 实验5.1.1源码 #include <stdio.h> #include<stdlib.h> #define N 5 void input(int x[], int n); void output(int x[], int n); void find_min_max(int x[], in ......
实验5 C语言指针应用编程
实验任务1 代码task1_1.c 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 ......
实验5
任务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 *pmax); i ......
实验五
task1.1 1.源代码 1 #include<stdio.h> 2 #include<stdlib.h> 3 #define N 5 4 5 void input(int x[], int n); 6 void output(int x[], int n); 7 void find_min_ma ......
实验五
task1_1 code #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 ......
实验5
task1.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 *pmi ......
实验4 现代C++标准库与类模板
实验任务5TextCoder.hpp #pragma once #include<iostream> #include<string> using namespace std; class TextCoder { public: TextCoder(string text0) : text{ tex ......
实验4 现代C++标准库与类模板
实验任务5 #pragma once #include<iostream> #include<string> using namespace std; class TextCoder { public: TextCoder() = default; TextCoder(string str); st ......
实验4 现代C++标准库与类模板
实验任务1 源代码: #include <iostream> using std::cout; using std::endl; // 类A的定义 class A{ public: A(int x0, int y0): x{ x0 }, y{ y0 } {} void show() const { ......
实验4 现代C++标准库与类模板
实验任务5TextCoder.hpp源码 1 #include<iostream> 2 #include<string> 3 4 using std::string; 5 6 class TextCoder { 7 private: 8 string text; 9 void encoder(); ......
设计模式实验
软件设计 石家庄铁道大学信息学院 实验 21:观察者模式 本次实验属于模仿型实验,通过本次实验学生将掌握以下内容: 1、理解观察者模式的动机,掌握该模式的结构; 2、能够利用观察者模式解决实际问题。 [实验任务一]:股票提醒 当股票的价格上涨或下降5%时,会通知持有该股票的股民,当股民听到价格上涨的 ......
高飞实验
实验21 package shiyan21; import java.util.ArrayList; public class Gufen extends Subject{ public void up(){ System.out.println(" 股份上涨100% "); for(Observe ......
局域网组网实验复习
课程内容 设备配置,sw和router接口配置 VLAN技术(涉及端口和链路类型) 一个IGP : RIP协议 一个BGP: OSPF协议 学习通课后习题 网络设备 交换机 可以隔离冲突域(collision domain), 可以通过增加网段数,减少每个网段的用户数量,减少冲突产生 传统sw在OS ......
Meterpreter框架使用实验
一. 实验目的与配置 了解漏洞复现的基本流程和方法 熟悉永恒之蓝的漏洞原理及其利用 熟悉Metasploit框架的使用及其相关的命令 二. 实验环境 Win7虚拟机一台,kali虚拟机一台 三. 实验工具 VMWare、NMap、Metasploit 四. 实验步骤 搭建测试环境,将kali作为攻击 ......
实验10:组合模式
实验10:组合模式 本次实验属于模仿型实验,通过本次实验学生将掌握以下内容: 1、理解组合模式的动机,掌握该模式的结构; 2、能够利用组合模式解决实际问题。 [实验任务一]:组合模式 用透明组合模式实现教材中的“文件夹浏览”这个例子。 实验要求: 1. 类图如下 2. 源代码以及相关截图; 运行截图 ......
实验9:桥接模式
实验9:桥接模式 本次实验属于模仿型实验,通过本次实验学生将掌握以下内容: 1、理解桥接模式的动机,掌握该模式的结构; 2、能够利用桥接模式解决实际问题。 [实验任务一]:两个维度的桥接模式 用桥接模式实现在路上开车这个问题,其中,车可以是car或bus,路可以是水泥路或沥青路。 实验要求: 1. ......
实验8:适配器模式
实验8:适配器模式 本次实验属于模仿型实验,通过本次实验学生将掌握以下内容: 1、理解适配器模式的动机,掌握该模式的结构; 2、能够利用适配器模式解决实际问题。 [实验任务一]:双向适配器 实现一个双向适配器,使得猫可以学狗叫,狗可以学猫抓老鼠。 实验要求: 1. 对应的类图如下; 2. 提交源代码 ......
实验7:单例模式
实验7:单例模式 本次实验属于模仿型实验,通过本次实验学生将掌握以下内容: 1、理解单例模式的动机,掌握该模式的结构; 2、能够利用单列模式解决实际问题。 [实验任务一]:学号的单一 仿照课堂的身份证的例子,实现每个同学仅有一个学号这一问题。 实验要求: 1. 画出对应的类图; 2. 源代码及运行截 ......