实验七

2023.12.4学习笔记(stm32跑马灯实验——库函数)

STM32f4有七组引脚(GPIOx),每组引脚有16个IO口,每组由十个寄存器控制。 查找STM32引脚的功能,可以在STM32F04ZGT6文件50页左右查询,此文件所在的位置为硬件资料、芯片资料文件夹里。 跑马灯实验思路步骤:1:使能时钟,调用函数RCC_AHB1PeriphClockCmd( ......
跑马灯 函数 笔记 2023 stm

七、标准IO和管道

七、标准IO和管道 重定向I/O,为什么要进行重定向?可以帮我们解决什么问题? 使用管道符连接命令 1、I/O输入输出 显示器是Linux系统中创建默认的输出设备 I/O:input和output 重定向:将原本标准设备,替换为我们想要的内容 目的: 在shell脚本中对脚本输出的内容进行处理,屏蔽 ......
管道 标准

七、Hadoop优化

优化1:Combiner 使用之前 使用之后 减少的了reduce 从map拉取数据的过程,提高计算效率。 hadoop 的计算特点:将计算任务向数据靠拢,而不是将数据向计算靠拢。 特点:数据本地化,减少网络io。 首先需要知道,hadoop数据本地化是指的map任务,reduce任务并不具备数据本 ......
Hadoop

七. 输入和输出

文章参考: 《C++面向对象程序设计》✍千处细节、万字总结(建议收藏)_白鳯的博客-CSDN博客 C++支持C的输入、输出结构,同时也建立了一套面向对象的输入、输出结构,且更加安全。其输入/输出通过字节流的形式实现。 1. 输入/输出头文件 iostream:包含了对输入/输出流进行操作所需的基本信 ......

实验5

实验1 1 #include <stdio.h> 2 #define N 5 3 void input(int x[], int n); 4 void output(int x[], int n); 5 void find_min_max(int x[], int n, int* pmin, int ......

SSH隧道代理实验

SSH隧道代理实验 实验环境 本实验需要准备: 1)kali虚拟机 2)kali虚拟机/Ubuntu虚拟机/centos虚拟机 3)Windows虚拟机 拓扑图: 说明: (ip随意,kali与Windows必须有): 主机网段A(外网网段):192.168.154.0/24 网段主机B(内网网段) ......
隧道 SSH

实验5

Task1_1 1 #include <stdio.h> 2 #define N 5 3 void input(int x[], int n); 4 void output(int x[], int n); 5 void find_min_max(int x[], int n, int *pmin, ......

生活记录:和大师姐及实验室师兄弟一起吃鸡公煲留念——集积分兑换“毛绒玩具小猪”

在实验室时每每出去聚餐吃饭总是喜欢去附近的鸡公煲,那家也是有个积分兑换毛绒玩具的活动,虽然最后也没有攒够积分而那家店在疫情中也没有熬过去,不过当年吃鸡公煲时是一直惦记着这个玩偶的,虽然未能实现自己的小目标但是这个经历还是蛮值得纪念的。 可爱的毛绒玩具——“小粉猪” ......
师兄弟 毛绒玩具 师姐 毛绒 师兄

实验5

实验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 *pmin, i ......

实验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); ......

生物信息学湖南省重点实验室

生物信息学湖南省重点实验室将于2020年8月29日上午(8:30-10:45)举办第一次学术研讨会,特邀请了张灼华校长、张学工教授和高琳教授做报告。分线上(腾讯会议ID:342846757)和线下同时进行,欢迎线上或线下参会,并分享给学生,谢谢。 衡阳医学院-南华大学 清华大学 ......
实验室 重点 生物 信息

实验5 继承和多态

实验任务三 pets.hpp #pragma once #include <iostream> #include <string> using namespace std; class MachinePets { protected: string nickname; public: Machine ......

实验五_OOP_张文瑞_202213260018

实验任务3pets.hpp源码 1 #include <iostream> 2 using std::string; 3 class MachinePets { 4 private: 5 string nickname; 6 public: 7 MachinePets(const string s) ......
202213260018 OOP

百度图像增强与特效SDK实验——百度代码篇

本次实验是实现一个程序调用百度漫画接口: 下一篇是我自己的窗口代码 百度代码: package 图像; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; ......
特效 图像 代码 SDK

实验5

任务3 #pragma once #include<iostream> #include<string> using std::cout; using std::cin; using std::endl; using std::string; class MachinePets{ public: M ......

实验5

任务3 pets #include <iostream> #include <string> #pragma once using namespace std; class MachinePets { private: string nickname; public: MachinePets(con ......

实验五

任务3 1 #include<iostream> 2 #include<stdlib.h> 3 #include<string> 4 using namespace std; 5 class MachinePets 6 { 7 private: 8 string nickname; 9 public ......

七、死信队列

一、死信的概念 二、死信的来源 三、死信实战 1、代码架构图 2、消息TTL过期 2.1 消费者代码 消费者01 消费者02 2.2 生产者代码 2.3 展示效果 3、队列达到最大长度 3.1 代码修改 3.2 展示效果 4、消息被拒 4.1 代码修改 4.2 展示效果 ......
死信 队列

实验5 继承和多态

实验任务3 pets.hpp: 1 # pragma once 2 3 #include <iostream> 4 #include <string> 5 6 using namespace std; 7 8 class MachinePets{ 9 private: 10 string nickn ......

实验五

实验任务3 .hpp #include <iostream>using std::string;class MachinePets { private: string nickname; public: MachinePets(const string s); string get_nickname ......

实验5 继承和多态

实验任务3 1 #include<iostream> 2 #include<string> 3 using namespace std; 4 class MachinePets 5 { 6 private: 7 string nickname; 8 public: 9 MachinePets(con ......

实验五 继承和多态

实验任务1 publisher.hpp #pragma once #include<iostream> #include<string> using std::cout; using std::string; using std::endl; class publisher{ public: pub ......

实验五

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 * ......

实验五

#include <stdio.h> #define N 80 void replace(char *str, char old_char, char new_char); int main() { char text[N] = "c programming is difficult or not, ......

实验5 继承和多态

实验任务1 源代码: #pragma once #include <iostream> #include <string> using std::cout; using std::endl; using std::string; // 发行/出版物类:Publisher (抽象类) class Pu ......

实验五 继承和多态

task3 machinepets.hpp #include<iostream> #include<string> using namespace std; class MachinePets { public: MachinePets(const string s); MachinePets(); ......

实验5

实验任务3 1 #pragma once 2 #include <string> 3 #include <iostream> 4 5 class MachinePets { 6 public: 7 MachinePets(const std::string& s); 8 virtual ~Machi ......

实验五 继承和多态

Task 3:pets.hpp: #include<iostream> #include<string> using namespace std; class MachinePets{ public: MachinePets(const string s):nickname(s){} const s ......

实验五

实验1 功能是分别找到输入数中的最小值和最大值 两者都指向x[0] 功能是找到最大数,返回的是最大数的地址 可以,因为改变之后返回的也是最大值的地址 实验2 s1大小是24个字节,sizeof以字节为单位返回一个变量,表达式或类型的长度, strlen是计算字符串长度的,不包含结尾符号‘\0’ 不能 ......

实验5 C语言指针应用编程

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 ......
指针 语言