- 博客(46)
- 收藏
- 关注
原创 QT、ffmpeg视频监控分屏
1、支持分屏(4,6,8,9,13,16,25,32,64)切换。4、本人亲测支持播放32路,64路没做测试。5、支持读取本地目录加载mp4文件列表。3、支持播放mp4,rtmp等。
2024-04-14 23:53:50
501
3
原创 09day(static、extern、typedef、const关键字使用、宏定义)
认识程序编译环节预处理 -- 》编译 -- 》汇编 -- 》链接预编译:这个过程主要的处理操作如下:将所有的#define删除,并且展开所有的宏定义处理所有的条件预编译指令,如# if 、#ifdef处理#include预编译指令,将被包含的文件插入到该预编译指令的位置。过滤所有的注释添加行号和文件名标识。编译:这个过程主要的处理操作如下:词法分析:将源代码的字符序列分割成一系列的记号。语法分析:对记号进行语法分析,产生语法树。语义分析:判断表达式是否有意义。代码优化。
2023-09-02 18:28:15
30
原创 数字大爆炸,计算机随机产生一个1~100之间的正整数,请用户来猜
/***************************************数字大爆炸,计算机随机产生一个1~100之间的正整数,请用户来猜,如果 猜对了,提示:"Wonderful,you are right",如果猜错就提示:"Sorry,you are wrong" ,并告之用户猜大了(too high)还是小了(too low),最多猜6次。Name : XIAO XUDate : 6.24**********************************************
2021-06-24 23:05:05
2280
原创 输入一个年份,判断这个年份是平年还是闰年
题目:1、输入一个年份,判断这个年份是平年还是闰年。注释:闰年能被4整除且不能被100整除 或者 能被400整除 /取整(商) %取余(余数)#include <stdio.h>int main(void){ int Year = 0; printf("year:"); scanf("%d",&Year); if((Year % 4 == 0 && Year % 100 != 0) || Year % 400 == 0
2021-06-24 20:44:48
5382
原创 C语言控制流
======================= C语言控制流 =======================================《一》while do-while for if-else switch-case goto break continue return 1. while:循环 while:代码模块 while(判断表达式) { ....//代码块1 } ....//代码块2 判断表达式:其实就是一些值比较的结果 如3>5 a<b ....
2021-06-24 20:06:42
347
原创 C语言输入及输出以及及scanf输入处理及类型转换
===============================C语言输入及输出============================输入:scanf()输出:printf();printf:#include <stdio.h>int printf(const char *format, ...); //变参函数返回值:成功打印个数const char *format:封装成的字符,这些字符将显示在屏幕上 int number = 100;printf("number =
2021-06-22 20:03:37
739
原创 数据类型及变量、进制转换
===========================数据类型及变量================================= 《1》在运行内存或者对应的存储内存当中,所有数据均以二进制的形式存储 数据类型:char short int long long long float double 1个字节在占八位 char 修饰的变量所占用的内存大小:1byte (1个字节) short 修饰的变量所占用的内存大小:2byte (2个字节) in
2021-06-21 21:21:03
120
原创 功能:读取另外一个文件数据
/* 1、功能:读取另外一个文件数据 2、用到知识:c语言和标准io知识 3、本代码还有很大修改空间,可以利用各种方法实现*/#include <stdio.h>#include <string.h>#include <stdlib.h>void dw_file(){ //打开源文件 FILE *fd = fopen("./src.txt","r"); if(fd == NULL) { perror("fopen失败:\n"); exit
2020-09-22 23:04:03
173
原创 如何用IP转换成整型数、将整型数转换成IP
/* 功能:将IP转换成整型数 方法:1、将字符串转换成网络字节序 2、将网络字节数转换成主机字序 */#include <stdio.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>int main(void){ //将字符串转换为网络字节序 char ip[]="192.168.19.139"; //结构体 struct in_a
2020-09-07 20:16:42
594
原创 linux基本操作命令(必须掌握)
桌面系统:window ios ubuntu(linux) Red Hat(linux) CentOS Aliyun Linux....移动系统:ios 安卓(linux) Linux:Linux是一套免费使用和自由传播的类Unix操作系统,是一个基于POSIX和UNIX的多用户、多任务、支持多线程和多CPU的操作系统。它能运行主要的UNIX工具软件、应用程序和网络协议。它支持32位和64位硬件。Linux继承了Unix以网络为核心的设计思想,是一个性能稳定的多用户网络操作系统。Uni
2020-09-07 19:52:21
354
原创 双链表实现:增、删、查、改
#include <stdio.h>#include <string.h>#include <stdlib.h>//结构体struct node{ int data ; //数据域 struct node *next ; //后驱指针 struct node *prev ; //前驱指针};//头插void add_node(struct node *head , int data){ //建立一个新节点 struct node *new =
2020-09-05 17:14:30
96
原创 使用有名管道双方进行聊天通信
client_fifo:#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>#include <string.h>int main(void){ printf("开始微信聊天\n"); //创建一个进程 pid_t pid = fork(); if(pid ==
2020-09-04 22:26:58
246
原创 使用execl函数族和无名管道进行从定向(dup2),打开wc -w命令
#include <stdio.h>#include <unistd.h>#include <stdlib.h>#include <string.h>#include <sys/types.h>#include <unistd.h>#include <sys/types.h>#include <sys/wait.h>#include <sys/types.h>#include <
2020-09-04 22:15:31
273
原创 (数据结构)单链表 增、删 、查 、改 ,本人写的有问题欢迎交流 ,指正错误
#include <stdio.h>#include <stdlib.h>//结构体struct node{int data ; //数据域struct node *next; //指针域};//尾插int add_node(struct node *head ,int data){struct node *new = malloc(sizeof(struct node));//初始化节点new->next = NULL ;new->data
2020-09-04 21:51:08
549
原创 显示BMP图片
//bmp循环显示照片===#include<stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>#include <sys/mman.h>/1.打开lcd驱动2.申请共享内存3.打开bmp图片,获取图片数据4.把24位的图片数据转成32位同时放到共享内存里5.关闭lcd bmp 释放内存/
2020-09-04 21:33:28
707
使用6818开发板进行触屏控制图片功能:加载图片目录、自动播放、删除、上一张、下一张、退出
2023-03-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人