E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
.include
UVA489刽子手游戏
UVA489刽子手的游戏HangmanJudge-洛谷#
include
usingnamespacestd;boolarr[26];intmain(){intn;while(cin>>n&&n!
HUN金克斯
·
2025-06-23 19:01
CCFCSP训练
游戏
算法
CCF
c++
c/c++求素数的优化
intisPrime(intn){if(n==2)return1;for(inti=2;iisprime(MAX,true);for(inti=3;iisprime(MAX,true);for(inti=3;i#
include
江南坐忘道
·
2025-06-23 17:18
c/c++小技巧
算法
c++
c语言
(C语言)Map数组的实现(数据结构)(链表)(指针)
源代码:#
include
#
include
#
include
//键值对节点typedefstructNode{char*key;intvalue;structNode*next;}Node;//Map结构typedefstruct
双叶836
·
2025-06-23 16:44
数据结构
C语言基础教学
C语言(指针)
哈希算法
数据结构
算法
c++
c语言
链表
(C++)素数的判断(C++教学)(C语言)
源代码:#
include
usingnamespacestd;intfun(intnum){if(num>num;y=fun(num);coutusingnamespacestd;intmain(){intnum
双叶836
·
2025-06-23 16:43
C++基础教学
c++
c语言
算法
数据结构
开发语言
jxnu acm新生选拔赛
最小的数ProblemDescription定义一种正整数集合K,集合中有N个数,集合中元素Ki(12#
include
3#
include
4#
include
5#
include
6#definelllonglong7usingnamespacestd
weixin_30474613
·
2025-06-23 12:16
c/c++
gazebo报错:usr/
include
/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:13:2: error: #error incompatible with
1、错误展示:编译工作空间时报了这个错误:usr/
include
/gazebo-11/gazebo/msgs/wrench_stamped.pb.h:13:2:error:#errorincompatiblewithyourProtocolBufferheaders.Pleaseupdate13
麦田里的捡穗狗
·
2025-06-23 08:51
服务器
运维
迪杰斯特拉和普利姆算法
#
include
usingnamespacestd;#defineN10000typedefstructNet{int**weight;intnumNodes;}Net,*NetPtr;NetPtrinitNet
天地一流殇
·
2025-06-23 08:48
算法
c++
数据结构
nginx优化详解(2)
1、http主体优化1.1、开启高效传输模式[root@cjq11~]#vim/usr/local/nginx/conf/nginx.confhttp{
include
mime.types;#媒体类型(主配置文件加载从
IT冰西瓜
·
2025-06-23 05:00
nginx
服务器
运维
linux
qtwidget嵌入qml
接下来时一步步实现我们和往常一样先创建一个mainwindow程序,在模块中加入QT+=quickwidgets因为我们需要用到#
include
这个组件把qml包装起来,这个组件的属性和函数可以在qtcreater
六bring个六
·
2025-06-23 02:35
qt6
c++
QML
qt
工程实践:求两个有序集合的并集依然有序之数组法
#
include
#
include
#defineTRUE1#defineFALSE0#defineERROR0#defineOVERFLOW-1#defineOK1;#defineLISTINCREMENT10typedefintStatus
And_Ii
·
2025-06-23 01:30
算法
数据结构转换与离散点生成
以下是示例代码:#
include
#
include
intmain(){doublea=5.0;//
·
2025-06-23 00:55
Qt 实现的简单截屏程序
下面是主要文件代码:widget.h#ifndefWIDGET_H#defineWIDGET_H#
include
#
include
QT_BEGIN_NAMESPACEnamespaceUi{classWidget
@hdd
·
2025-06-22 17:08
Qt
qt
截图
ROS error: ‘nullptr’ was not declared in this scope
ROS中,编译cv_bridge时,error:‘nullptr’wasnotdeclaredinthisscope在cv_birdge的cmakelists.txt中添加:
include
(CheckCXXCompilerFlag
青青草原的玫玫小羊
·
2025-06-22 17:06
笔记
Ubuntu
Python
cmake
linux
ros_subcribe
#
include
#
include
#
include
#
include
//电机引脚定义constintenA=9;constintin1=5;constintin2=6;constintenB=10;constintin3
qqqweiweiqq
·
2025-06-22 16:34
机器人
笔记
ESP 8266+ TTS 实现对讲机语音播报 时间 和信息
#
include
#
include
#
include
#
include
#
include
"UTF8ToGB2312.h"//需要改造对讲机耳机连接至TTS音响接口#defineSERIAL2_TX12//接TTSRX
·
2025-06-22 15:27
C++ 文件读写
文本文件读写头文件与命名空间:#
include
#
include
#
include
usingnamespacestd;写文本文件:ofstreamofs("test.txt");//打
老土豆FUSK
·
2025-06-22 15:54
C++基础
c++
开发语言
51模块化编程
#
include
"xxx.h"此语句只是将xxx.h文件复制粘贴到本句语句的位置,别无它用。防止多个.c文件同时用到相同头文件时,会有重复定义,可以在头文件里加
正旺单片机
·
2025-06-22 14:47
51单片机
单片机
stm32
嵌入式硬件
红皮书C语言(六-八)
第六章------数组二1,C语言实现,编写函数,对n个字符按字典顺序排序,限定函数名为voidsort(charst[][10],intn)思路:使用strcmp函数与strcpy函数#
include
Freiheit
·
2025-06-22 13:43
c语言
算法
开发语言
C++---断言assert
基本语法如下:#
include
assert(expression);expres
MzKyle
·
2025-06-22 12:08
C++
STL
c++
开发语言
C语言:最大公约数与最小公倍数
1.求最大公约数1.暴力法#
include
intmain(){inta=0;intb=0;scanf("%d%d",&a,&b);inttmp=a>b?
Wnn.1027
·
2025-06-22 08:14
c语言
c语言
C++多线程std::thread使用详解
多线程创建需要包含头文件:#
include
1.通过无参函数创建voidfunc();std::threadtask(&func);2.通过有参函数创建voidfunc(intn,int&m);std::
Black.Spider
·
2025-06-22 07:00
C++多线程编程
多线程
C++ std::thread多线程详解
FuncitonObject)4、非静态成员函数5、静态成员函数(二)、std::thread线程停止1、join函数2、detach函数(三)、std::mutex锁(一)、std::thread线程创建1、函数指针#
include
牛马不分
·
2025-06-22 07:29
并发编程
c++11
c++
代码随想录day8字符串1
反转字符串题目链接文章讲解ACclassSolution{public:voidreverseString(vector&s){intmid=s.size()/2;for(inti=0,j=s.size()-1;i#
include
皮蛋瘦肉粥_121
·
2025-06-22 06:29
算法
数据结构
C++基础练习-二维数组
pid=2022题解:#
include
usingnamespacestd;intz[10000][10000];intmain(){intm,n;while(cin>>m>>n){intx,max=-1
s15335
·
2025-06-22 04:11
C++练习题
c++
开发语言
数据结构-顺序表-数值统计
pid=2008解答:#
include
usingnamespacestd;#defineSLDataTypedoublestructSequlist{SLDataType*array;intsize;intcapacity
·
2025-06-22 04:11
NOI / 1.4编程基础之逻辑表达式与条件分支[1-10]
输入一个整数N(-1090,输出positive;如果N=0,输出zero;如果N#
include
usingnamespacestd;intmain(){intN;cin>>N;if(N>0){cout
c++信息学奥赛
·
2025-06-22 01:58
noi.openjudge
算法
noi
c++
openjudeg
如何用c语言,输出%d、\n等特殊字符
#
include
intmain(){printf("%%d");//在屏幕中输出%d//printf("\\n");//在屏幕中输出\n//printf("%%%%%d");//%%0//printf(
ma451152002
·
2025-06-22 01:55
算法
opencv实现点到region最小距离,distance_pr
distance_pr的算子很快使用opencv模仿实现一下halcon的region使用rle编码,还有可能使用凸包优化,simd,二分查找,多线程计算,这里只实现基础的功能#
include
#
include
isyoungboy
·
2025-06-21 22:38
opencv
人工智能
计算机视觉
C++单例模式的继承方式实现
#
include
usingnamespacestd;templateclassSingleTon{friendT;public:staticT&getInstance()
.Brooklyn..
·
2025-06-21 21:00
c++
设计模式
STM32笔记-定时器TIM中断
:三、源码一、开发环境开发板:STM32F407ZE二、功能:TIM3中断每1秒亮1次LED1TIM2中断每1秒亮2次LED2TIM5中断每1秒亮3次LED3TIM1中断每1秒亮4次LED4三、源码#
include
"tim.h
青云客_Hugh
·
2025-06-21 21:59
STM32
单片机
stm32
嵌入式
Linux——库文件生成和使用
注意:库的头文件一般存储在/usr/
include
下或子目录。3.库的分类
Gyx的Blog
·
2025-06-21 20:27
linux
运维
服务器
c++头文件:cdraw
目录前文头文件源码函数逐个解析1.drawCircle2.drawdrawTriangle3.drawRectangle头文件使用方法不那么温馨的温馨提示后文前文本期博客,我会分享一个我自制的c++头文件:#
include
tezr123
·
2025-06-21 19:48
C++
c++
开发语言
算法
C语言结构体数组冒泡排序
#
include
#defineN3intmain(){structBook{charnum[10];charname[10];charwriter[10];floatprice;}books[N],bf
劉66
·
2025-06-21 19:44
笔记
c语言
排序算法
开发语言
结构体冒泡排序年龄
#
include
usingnamespacestd;//1、设计英雄的结构体structHero{stringname;intage;stringsex;};intmain(){//2、创建数组进行排序
仰泳的鱼子
·
2025-06-21 18:14
算法
c++
数据结构
【初识c语言】
第一个c程序#
include
intmain(){/*我的第一个C程序*/printf("Hello,World!
Little-Hu
·
2025-06-21 14:47
C语言学习
c语言
Qt编程: 正则表达式分析
QRegularExpression基础1.1基本使用#
include
//构造正则表达式QRegularExpressionre("apattern");//检查是否有效if(!
倔强老吕
·
2025-06-21 14:44
QT开发
qt
正则表达式
算法第37天| 完全背包\518. 零钱兑换 II\377. 组合总和 Ⅳ\57. 爬楼梯
完全背包题目思路与解法#
include
#
include
usingnamespacestd;i
烨然若神人~
·
2025-06-21 13:11
算法
算法
展示深拷贝与移动语义的对比
定义Buffer类(含深拷贝和移动语义)```#
include
#
include
#
include
classBuffer{public://默认构造函数(分配内存)explicitBuffer(size_tsize
::呵呵哒::
·
2025-06-21 11:27
C++基础
C++
排序算法-归并排序与快速排序
归并排序#
include
#
include
#
include
usingnamespacestd;
·
2025-06-21 09:47
C语言常见的代码架构
以下是几种主要的架构方式:1.单文件架构最简单的架构,适用于小型项目或学习用途://main.c#
include
//函数声明voidfunction1();intfunction2(intparam);
迷茫菜鸡
·
2025-06-21 07:29
c语言
架构
开发语言
c++语言输入监听器
实施软件:vsWindows11代码:#
include
#i
·
2025-06-21 03:37
ROS学习之动作通信
哔哩哔哩_bilibili首先,服务端的目标:可以提取客户端请求提交的整形数据,并且累加从1到该数据之间所有整数之和完成每累加一次都计算当前运算进度,连续返回到客户端,在最后显示求和关于C++实现代码:#
include
"rclcpp
扶我起来我还想学
·
2025-06-21 00:20
学习
机器人
python
c++
51单片机基础练习
3.闪烁灯(总线法)#
include
voiddelay(inti){while(i--);}voidmain(){while(1){P2=0xfe;delay(10000);P2=0xff;delay(
繁花易逝烟雨沉
·
2025-06-20 21:56
51单片机基础练习
51单片机
单片机
stm32
linux内核-写时复制之实验+源码分析
有这么一个程序:#
include
#
include
#
include
#
include
//打印当前进程的内存占用(常驻集大小)voidprint_memory_usage(constchar*stage){FILE
·
2025-06-20 17:33
基于GD32F4XX串口环形缓冲区,北斗2.1协议,RD模块数据解析代码
以下是基于GD32F4XX串口,使用sscanf函数、strstr和strcmp,并结合环形缓冲区在中断中写数据,主函数处理发送接收的代码示例:串口初始化与环形缓冲区定义#
include
#
include
森焱森
·
2025-06-20 15:16
c语言
算法
单片机
架构
简易秒表计时器设计
二、硬件电路三、C51源程序#
include
#defineucharunsignedchar#de
不忘不弃
·
2025-06-20 12:24
c语言
单片机
基于51单片机的频率计设计
二、硬件电路三、C51程序#
include
#defineucharunsignedcharucharCounter;voidTime01_Init(void);//T0和T1初始化函数voidTime01
·
2025-06-20 12:24
C语言矩阵转置
题目:矩阵转置代码如下:#
include
intmain(){intn=0;//行intm=0;//列scanf("%d%d",&n,&m);//intarr1[n][m]={0};//VS中不支持变长数组
带鱼儿6
·
2025-06-20 12:51
矩阵
算法
线性代数
openjudge程序设计与算法C/C++解题大全
题目链接如下:http://cxsjsxmooc.openjudge.cn/2021t1summer2/001:输出第二个整数#
include
intmain(void){inta,b,c;scanf("
qing huan
·
2025-06-20 12:51
C++
c++
算法
实现范围滑块 QT
#
include
#
include
#
include
<QVBoxLayout
墨如夜色
·
2025-06-20 12:21
qt
数据库
开发语言
QT
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他