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
spaces
windows环境UDP发送free-d协议数据,全网独家!
话不多说上代码:#include#include#include#include#include#pragmacomment(lib,"ws2_32.lib")usingname
spaces
td;bytebuf
天边大红莲
·
2024-01-01 07:56
c语言
linux实用技巧:ubuntu18.04安装samba服务器实现局域网文件共享
Chapter1Ubuntu18.04安装配置Samba服务与Win10共享文件一、什么是Samba二、安装Samba1、查看是否有安装samba2、安装samba三、配置Samba服务1、创建共享目录(以samba_work
spaces
宁静致远2021
·
2024-01-01 07:21
嵌入式Linux及驱动开发
工控软件
Linux
linux
服务器
运维
【算法】数论---快速幂
暴力写法---循环b次求出a^bmodp(时间复杂度:O(b))inta,b,p;cin>>a>>b>>p;longlongres=1;while(b--)res=res*a%p;coutusingname
spaces
td
gz=zg
·
2024-01-01 07:46
C++
算法竞赛
常用算法
算法
c++
1028 人口普查(20 分)
#include#include#includeusingname
spaces
td;constintmaxn=1e5+10;structpep{stringname,bir;}a,young,old;intn
DaiMorph
·
2024-01-01 06:05
C++ 中string.erase() 的用法
1、string.erase(pos,n)//删除从pos开始的n个字符string.erase(0,1);删除第一个字符:#include#includeusingname
spaces
td;intmain
gentle coder
·
2024-01-01 05:25
c++
算法
string
回溯法寻找元素之和等于目标值的子集
可以用来寻找所有元素之和等于目标值的子集.整个算法中最重要的是:在递归之后"恢复现场"也就是:t[cnt]=0;cnt--;完整代码(注释部分打印信息可以用来辅助理解递归过程):#include#includeusingname
spaces
td
Daylightap
·
2024-01-01 05:19
算法
回溯法求全排列
回溯问题最重要的一点:恢复现场//恢复现场st[i]=false;A[cnt]=0;cnt--;完整代码(注释部分可以帮助理解):#includeusingname
spaces
td;constintN=
Daylightap
·
2024-01-01 05:19
算法
c++
数据结构
矩阵连乘问题(动态规划)
#include#includeusingname
spaces
td;constintN=1010,INF=INT_MAX;intp[N],m[N][N],s[N][N];intn;构造最优解//voidTraceback
Daylightap
·
2024-01-01 05:48
矩阵
动态规划
线性代数
双指针算法
目录双指针算法最长连续不重复子序列数组元素的目标和双指针算法常见的两种样式:双指针指向两个不同的区间双指针指向一个区间的左右两端,这种方式更加常见双指针算法思想for(inti=0;i#includeusingname
spaces
td
貌美不及玲珑心,贤妻扶我青云志
·
2024-01-01 05:03
ACM日记
算法
c++
MySQL 8.0 InnoDB Table
spaces
之File-per-table table
spaces
(单独表空间)
文章目录MySQL8.0InnoDBTable
spaces
之File-per-tabletable
spaces
(单独表空间)File-per-tabletable
spaces
(单独表空间)相关变量:innodb_file_per_table
SQLplusDB
·
2024-01-01 03:20
MySQL
8.0
mysql
adb
MySQL 8.0 InnoDB Table
spaces
之General Table
spaces
(通用表空间/一般表空间)
文章目录MySQL8.0InnoDBTable
spaces
之GeneralTable
spaces
(通用表空间/一般表空间)Generaltable
spaces
(通用表空间/一般表空间)通用表空间的功能通用表空间的限制创建通用表空间
SQLplusDB
·
2024-01-01 03:48
MySQL
8.0
mysql
C++ mutex RAII锁的自动释放
C++mutexRAII锁的自动释放#include#include#includeusingname
spaces
td;//RAII锁的自动释放classXMutex{public:XMutex(std
木瞳
·
2024-01-01 03:46
笔记
C++
c++
开发语言
mutex
锁
C++容器常见函数操作
#include#include#include#include#include#include#includeusingname
spaces
td;intmain(){/*---------------
深度学习研究员
·
2024-01-01 03:45
基础知识
C++容器
henauOJ 1069: 三连击
#include#defineendl'\n'usingname
spaces
td;voidGordenGhost();vectora;boolvis[10];voidprint(){intyi=a[0]
GordrnGhost
·
2024-01-01 03:38
深度优先
算法
c++
henauOJ 1084: 超简单的矩阵乘法
#include#defineendl'\n'usingname
spaces
td;voidGordenGhost();intmain(){ios::
GordrnGhost
·
2024-01-01 03:08
矩阵
算法
数据结构
c++
字符转化为ASCII码
则为inta=charb;int(char)**```cpp#includeusingname
spaces
td;intmain(){int
纯爱战神爱上天弃之子
·
2024-01-01 01:51
c++
算法
CSP CCF 201512-2 消除类游戏 C++满分题解
#includeusingname
spaces
td;intmai
秦不知所起♡
·
2023-12-31 23:44
csp的刷题之路
c++
数据结构
算法
游戏
JVM之内存模型带参数
SpringBoot程序的JVM参数设置格式(Tomcat启动直接加在bin目录下catalina.sh文件里):java‐Xms2048M‐Xmx2048M‐Xmn1024M‐Xss512K‐XX:Meta
spaceS
ize
小阳小朋友
·
2023-12-31 22:02
jvm
【C++】回溯法解决装载问题
实际上,只需要考虑第一个轮船,因为第一个装的最多的情况,就是第二个装得最少的情况#include#includeusingname
spaces
td;intcurrent_weight=0;//当前载荷intm
真的很拉风
·
2023-12-31 22:54
算法设计与分析
c++
算法
数据结构
【C++】0-1背包问题
建立一个二维数组cost[][],其中cost[i][j]代表的是前i个货物房屋大小为j的背包的总价值代码如下:#include#includeusingname
spaces
td;typedefstruct
真的很拉风
·
2023-12-31 22:24
算法设计与分析
c++
算法
开发语言
【C++】最优装载问题
贪心算法——采用重量最轻者先装的贪心选择策略#include#include#includeusingname
spaces
td;typedefstruct{intid;intcarry;}Good;boolcompareGoods
真的很拉风
·
2023-12-31 22:24
算法设计与分析
c++
开发语言
算法
贪心算法
【C++】快速排序代码
#include#includeusingname
spaces
td;voidswap(vector&nums,inta,intb){inttemp=nums[a];nums[a]=nums[b];nums
真的很拉风
·
2023-12-31 22:23
算法设计与分析
c++
算法
数据结构
排序算法
【C++】线性时间选择
#include#includeusingname
spaces
td;voidswap(vector&nums,inta,intb){inttemp=nums[a];nums[a]=nums[b];nums
真的很拉风
·
2023-12-31 22:51
算法设计与分析
c++
算法
数据结构
乘积最大(c++题解)
输入格式第1行:1个整数第2行:个整数,表示输出格式第1行:1个整数,表示最大的乘积样例样例输入复制42212样例输出复制16一开始写的代码:#includeusingname
spaces
td;intn
hb_zhyu
·
2023-12-31 21:42
c++
算法
数据结构
C++面向对象基础-构造函数
#include usingname
spaces
td;// 帕斯卡命名法(大驼峰命名法)// 每个单词首
满山的猴子我的腚最红
·
2023-12-31 19:36
C++
c++
c++读取CPU序列号
CPU序列号有重复的一命令行方式、打开命令提示符界面(cmd)输入wmicCPUgetProcessorID即可得到CPU序列号二代码、#include#include#includeusingname
spaces
td
zxz520zmg
·
2023-12-31 19:30
C/C++
1085: 战斗吧皇后!
输入格式输入有若干行,每行两个数N,M(1usingname
spaces
td;typedeflonglongll;intmain(){lln,m;while(cin>>n>>m){if(n>m)swap
£xilm€
·
2023-12-31 18:31
思维
思维
Maximum Sum of Products
Input第一行给出整数n,1usingname
spaces
td;typedeflonglongll;constintN=5e3+4;lla[N],b[N],dp[N][N],f[N];intmain(
£xilm€
·
2023-12-31 18:01
dp
区间dp
c++简易AI
#include#includeusingname
spaces
td;voidcls(){system("cls");}voiddz(strings){for(inti=0;i>s;if(s=="你叫什么名字
酷影kuying
·
2023-12-31 16:48
c++
开发语言
递归实现指数型枚举
//递归实现指数型枚举#includeusingname
spaces
td;intn;voiddfs(intu,intstate){if(u==n){for(inti=0;i>i&1)//看第i位选没选
想不出来_6
·
2023-12-31 16:46
深度优先
算法
结构体:子网掩码
#includeusingname
spaces
td;unionIP//创建共用体{unsignedchara[4];unsignedintip;};IPgetIP()//获取ip函数{inta,b,c,
尘心cx
·
2023-12-31 16:43
算法
c++
数据结构
结构体:搜索链表
#include#includeusingname
spaces
td;structStudent//创建结构体Student{intnumber;//学号charname[20];//姓名floatChinese
尘心cx
·
2023-12-31 16:43
链表
c++
算法
指针:字符串的比较
利用指针进行字符串的比较#includeusingname
spaces
td;voidstrCompare(char*str1,char*str2,intt)//字符串比较函数{char*p1=str1;
尘心cx
·
2023-12-31 16:13
c++
算法
结构体:成绩排序
#includeusingname
spaces
td;structStudent//创建结构体Student{intnumber;//学号charname[25];//姓名floatscore;//分数}
尘心cx
·
2023-12-31 16:13
算法
结构体:是第几天
今天是该年的第几天#includeusingname
spaces
td;structDate//创建结构体{intyear;//年intmonth;//月intday;//日};voidinputDate
尘心cx
·
2023-12-31 16:13
算法
指针:字符串排序
利用指针对三个字符串进行排序指针变量作为形参,接收实参的地址#include#include//头文件包含strcmp函数、strcpy函数usingname
spaces
td;voidsort(char
尘心cx
·
2023-12-31 16:43
c++
算法
数据结构
指针:数据交换
1、利用指针交换两个数#includeusingname
spaces
td;voidswap(int*a,int*b);intmain(){intx,y;cin>>x>>y;swap(&x,&y);//地址传递
尘心cx
·
2023-12-31 16:42
算法
c++
数据结构
递归实现排列型枚举
//递归实现排列型枚举#includeusingname
spaces
td;constintN=10;intstate[N],n;boolbis[N];voiddfs(intu){if(u==n+1){for
想不出来_6
·
2023-12-31 16:41
深度优先
算法
链表:约瑟夫环
#includeusingname
spaces
td;structCircle//创建结构体Circle{intindex;//编号Circle*next;//指针变量next指向一个节点};Circle
尘心cx
·
2023-12-31 16:10
链表
数据结构
Visual Studio Code设置为代码风格为 Google C++ Style
VisualStudioCode设置为代码风格为GoogleC++Style谷歌规范C++voidf(){std::cout前添加空格
Spaces
InAngles:false#在容器(ObjC和JavaScript
theRavensea
·
2023-12-31 16:31
vscode
c++
ide
洛谷:线性表
1.询问学号(vector)#include#includeusingname
spaces
td;intmain(){vectorret;intn,m,a,b;cin>>n>>m;while(n--){cin
c++机械师
·
2023-12-31 15:11
洛谷
数据结构
洛谷:集合与前缀和
1.亲戚(并查集)#includeusingname
spaces
td;intn,m,p;intm1,m2,p1,p2;intf[5005];intfind(intx)//查询根节点,根节点的标志是根节点的父节点是自己
c++机械师
·
2023-12-31 15:11
洛谷
数据结构
算法
最强素数(UPC新生训练赛12)
输入仅一行,一个整数n(1usingname
spaces
td;intst[1000010];intprime[10
CharlesC++
·
2023-12-31 15:10
算法
c++
求n个数中出现次数最多的数 (UPC)
题目描述从键盘读入n个整数(nusingname
spaces
td;intmain(){intarr[11]={0};intn;cin>>n;intnum;for(inti=1;i>num
CharlesC++
·
2023-12-31 15:40
算法
c++
从 M 开始找出 N 个质数
#includeusingname
spaces
td;intjudgePrime(intn){if(n>m>>n;j=m;for(i=0;i<n;j++){if(judgePrime
瓜大小王子
·
2023-12-31 14:28
C++ 数据抽象 封装 接口
达到数据抽象的目的#includeusingname
spaces
td;intmain(){coutusingname
spaces
td;classAdder{public://构造函数Adder(inti
小小小8021
·
2023-12-31 14:02
算法-数组:长度最小的子数组
#include#includeusingname
spaces
td;//方法一:暴力解法,两个for循环,依次遍历从0开始的每个满足条件的连续子数组,记录其中长度最小的那个intmethod(vector
蒲公英干草怪
·
2023-12-31 13:24
C++
算法
leetcode
c++
求最长回文字符串
#includeusingname
spaces
td;stringpalindromic(string&s){intlen=s.size();//字符串长度intmaxlen=1;//最长回文字符串长度intstart
灬蜂蜜柚子
·
2023-12-31 12:02
数据结构与算法王卓-习题-第五章树和二叉树-哈夫曼编码
2.代码#includeusingname
spaces
td;typedefstruct{in
Finale_Raky
·
2023-12-31 12:15
数据结构与算法习题
数据结构
算法
霍夫曼树
编码算法
决策树
C++内联函数与引用(超详细)
引用使用场景5.引用与指针总结前言一、内联函数1.为什么会存在内联函数首先我们介绍内联函数之前,首先看一下我们之前学过的#define定义的宏写一个宏函数,实现两个函数的相加#includeusingname
spaces
td
lim 鹏哥
·
2023-12-31 12:42
C嘎嘎
c++
开发语言
内联函数
引用
上一页
91
92
93
94
95
96
97
98
下一页
按字母分类:
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
其他