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
数据结构队列例题二-链表实现
#includeusingname
spaces
td;typedefstructQNode{intdata;structQNode*next;}QNode,*QueuePtr;typedefstruct{
企鹅会滑雪
·
2023-11-04 18:48
严蔚敏数据结构
数据结构
链表
算法
NOIP 2002 普及组第二题
[NOIP2002普及组]选数题目描述已知n个整数x1,x2,x3,xn,以及1个整数k(k#include#include#includeusingname
spaces
td;typedeflonglongll
企鹅会滑雪
·
2023-11-04 18:17
搜索
深度优先
数据结构实验1约瑟夫环
刚开始m值为20循环链表#includeusingname
spaces
td;typedefstructLNode{intdata;intnum;structLNode*next;}LNode,*LinkList
企鹅会滑雪
·
2023-11-04 18:17
严蔚敏数据结构
数据结构
数据结构顺序栈例题一
内容仅供个人复习#include#defineMAXSIZE100usingname
spaces
td;typedefstruct{int*base;int*top;intstackSize;}SqStack
企鹅会滑雪
·
2023-11-04 18:17
严蔚敏数据结构
数据结构
c++
数据结构栈例题二
链表实现栈的操作#include#defineMAXSIZE100usingname
spaces
td;typedefstructStackNode{intdata;structStackNode*next
企鹅会滑雪
·
2023-11-04 18:17
严蔚敏数据结构
数据结构
c++
P1036 [NOIP2002 普及组] 选数
#[NOIP2002普及组]选数##题目描述已知n个整数x1,x2,x3,xn,以及1个整数k(k#include#include#includeusingname
spaces
td;typedeflonglongll
企鹅会滑雪
·
2023-11-04 18:47
深度优先
算法
P1088 [NOIP2004 普及组] 火星人
#include#include#include#include#includeusingname
spaces
td;constintN=1e4+10;constintM=1e6;inta[N];intb
企鹅会滑雪
·
2023-11-04 18:47
深度优先
算法
图论
数据结构队列例题一顺序实现
仅供个人复习使用#include#defineMAXSIZE6usingname
spaces
td;typedefstruct{int*base;intfront;intrear;}sqQueue;voidInit
企鹅会滑雪
·
2023-11-04 18:44
严蔚敏数据结构
数据结构
c++
P1194 买礼物
#includeusingname
spaces
td;typedeflongl
拧错位置的螺丝钉
·
2023-11-04 17:42
题解
图论
P3817 小A的糖果
#includeusingname
spaces
td;#defineintlonglongconstintmaxn=1e5+5;inta[maxn];signedmain(){intn
拧错位置的螺丝钉
·
2023-11-04 17:42
题解
贪心算法
B. Stone Age Problem -思维
代码#includeusingname
spaces
td;usingll=longlong;voi
Wy. Lsy
·
2023-11-04 17:29
算法
c++
思维
2022 icpc杭州站 C. No Bug No Game - 背包dp
代码#include#defineintlonglongusingname
spaces
td;constintN=3010;intdp[N][N][2];intw[N][20];intp[N];signedmain
Wy. Lsy
·
2023-11-04 17:23
c++
算法
背包dp
中国矿业大学——算法——贪心——删数问题
题目描述给定n位正整数a,去掉其中任意k(kusingname
spaces
td;inta,k;intnum[10000];intras=0;//输入数a的位数voidget_num(){while((a
Che_Che_
·
2023-11-04 16:46
算法作业2
算法
蓝桥杯
c++
活动安排问题:贪心算法————(C++实现)
每个活动i都有一个要求使用该资源的起始时间si和一个结束时间fi,siusingname
spaces
td;voidsort(intn,ints[],intf[]){inta,b,i,j;for(i=1;
seahallo
·
2023-11-04 16:46
贪心算法
算法
c++
学习c++的第六天
#includeusingname
spaces
td;intmain(){//数字定义shorts;inti;longl;floatf;doubled;//
世俗ˊ
·
2023-11-04 14:28
C++
学习
c++
开发语言
1024程序员节
模板
函数模板#include#include#include#include#includeusingname
spaces
td;templateintcompare(constT&v1,constT&v2)
mjzxcvbnm
·
2023-11-04 14:44
C++:类的调用
#include#include#includeusingname
spaces
td;//定义“人类”classHuman{public://公有的,公共的//voideat(){//直接在类里面写函数的内容
weixin_46060711
·
2023-11-04 13:37
C++类
c++
开发语言
后端
LeetCode421:数组中两个数的最大异或值
目录一、题目描述二、解题思路三、代码实现一、题目描述给定一个非空数组,数组中元素为a0,a1,a2,…,an-1,其中0≤aiusingname
spaces
td;classnode{public://只有
三人两日月
·
2023-11-04 13:30
刷题笔记
LeetCode 117. 填充每个节点的下一个右侧节点指针 II
全球极客挚爱的技术成长平台题目分析至于为什么先右子树,如果左子树优先的话,root->right需要通过root的next一直找,直到找到同层最右边的节点,此时同层右子树的节点还没连接C++代码#includeusingname
spaces
td
liangchaaaaa
·
2023-11-04 13:28
LeetCode
算法
leetcode
C++函数重载、重写与重定义
演示代码:#includeusingname
spaces
td;classA{public:virtualvoidFunction(doublei){coutFunction(4);//B:Function
大胡子的艾娃
·
2023-11-04 13:45
C++基础
C++
Templates
c++
重载
重写
重定义
模板函数
超级彩票机
#include#includeusingname
spaces
td;intw,n=0,m,num,y;intmain(){cin>>m;num=m*-20;srand(time(NULL));for(inti
would112112
·
2023-11-04 13:00
c++
lc12-整数转罗马数字,罗马转整数
#include#include#include#include#includeusingname
spaces
td;stringintToRoman(intnum){//数字转罗马intbase[]={
何偶丶
·
2023-11-04 12:58
C++类内多线程创建和调用成员变量的两种方式
如果想要在类内创建线程并调用类对象的成员变量,需要做一些处理,实现方式如下:第一种:类的对象作为线程的静态成员函数传入类指针使用,在类里调用#include#include#includeusingname
spaces
td
我是谁??
·
2023-11-04 12:43
C++
c++
开发语言
多线程
类内多线程
【学习笔记】[集训队互测 2021] 数列重排
只考虑#definelllonglong#definepbpush_back#defineinf0x3f3f3f3f#definefifirst#definesesecondusingname
spaces
td
仰望星空的蚂蚁
·
2023-11-04 11:00
学习
笔记
C++ const详解
二.const修饰符的使用场景1.修饰变量1.1其中修饰变量也有很多种情况,我们先来分析内存的不同情况代码:#includeusingname
spaces
td;inti=0;staticintj=0;intk
帅B猪
·
2023-11-04 10:01
c++
开发语言
后端
99. 激光炸弹(二维前缀和)
代码:#include#include#includeusingname
spaces
td;constintN=5010;intn,m;//目标横纵最大下标(避免遍历整个数组s[N][N],节约时间)ints
hz2.0
·
2023-11-04 10:21
前缀和
算法
1230. K倍区间(前缀和)
1230.K倍区间-AcWing题库突破口:区间遍历枚举一般先枚举右端点,再枚举左端点,注意由右端点限制左端点思路:1.暴力#include#include#include#includeusingname
spaces
td
hz2.0
·
2023-11-04 10:21
前缀和
c++
算法
开发语言
1015. 摘花生
题目:1015.摘花生-AcWing题库思路:dp代码:#include#include#includeusingname
spaces
td;constintN=110;typedeflonglongll
hz2.0
·
2023-11-04 10:48
dp
动态规划
算法
1 ~ n的k次方求和模板
limits_{i=1}^{n}i^ki=1∑nik/*Author:lifehappy*/#pragmaGCCoptimize(2)#pragmaGCCoptimize(3)#includeusingname
spaces
td
_lifehappy_
·
2023-11-04 10:47
数论
弗洛伊达算法
#includeusingname
spaces
td;inte[111][111
悠然天际
·
2023-11-04 09:29
三种最短路径的算法(弗洛伊德(Floyd),SPFA,迪杰斯克拉(Dijkstra)) # 无讲解 #
弗洛伊德算法Floyd算法,不允许所有权值为负的回路,可以求出任意两点间的最短距离for(intk=1;k#include#defineMAX0x3f3f3f3fusingname
spaces
td;intMap
Vocal_map
·
2023-11-04 09:53
算法
类和对象2-拷贝构造函数、赋值运算符重载
#includeusingname
spaces
td;classTest{public:Test(intdata=0){coutusingname
spaces
td;classTest{public:Test
林深方见鹿
·
2023-11-04 09:47
c++
开发语言
后端
C++类和对象:拷贝构造函数和运算符重载
编译器默认生成的拷贝构造函数1.3拷贝构造函数特性总结二.运算符重载2.1运算符重载概述2.2比较运算符重载(>>===运算符的重载2.2.2==运算符的重载2.2.3>=运算符的重载2.2.4usingname
spaces
td
【Shine】光芒
·
2023-11-04 09:16
C++从入门到精通
c++
开发语言
类和对象中的拷贝构造函数和赋值运算符重载
拷贝构造函数也是构造函数的一个重载形式拷贝构造函数的参数只有一个并且必须使用引用传参(注意如果使用传值的方式会引起无限递归调用)这里我们仍然使用之前的Date类来作为例子:#includeusingname
spaces
td
Persistence_Y_1
·
2023-11-04 09:46
C++
拷贝构造
赋值运算符重载
C++
类和对象
线程同步
线程同步输出ABBCCCABBCCC…用锁做了半天,用信号量一下子做出来了,c++没有自带的信号量库好烦#include#include#include#include#includeusingname
spaces
td
weixin_38616018
·
2023-11-04 09:23
算法
多线程
C++实现凯撒密码加解密
密钥为3//凯撒密码,密钥为3#includeusingname
spaces
td;classcode{public:chara[100],b[100];voidcrypto();voiddecrypto
五五六六0524
·
2023-11-04 06:37
C++
c++
C++ 凯撒密码具体代码实现
具体代码:#includeusingname
spaces
td;stringencrypt(){vectorv(26,0);//字母表strings
无火的残烬
·
2023-11-04 06:05
C++
c++
字符串
算法
凯撒密码c++语言程序,C++中的凯撒密码程序
这是我的代码:C++中的凯撒密码程序#include#includeusingname
spaces
td;intchooseKey(){
怨灵子舒
·
2023-11-04 06:02
凯撒密码c++语言程序
【深入理解C++】转发、完美转发、std::forward
文章目录1.转发2.完美转发3.std::forward和std::move的区别4.参考资料前置知识:万能引用、引用折叠1.转发#includeusingname
spaces
td;templatevoidFuncTemplate
早睡身体好呀
·
2023-11-04 06:57
深入理解C++
c++
完美转发
forward
C++ 完美转发forward理解
详细说明见代码注释代码#include#include#includeusingname
spaces
td;//左值引用voidprocess(int&x){cout(x));//完美转发,x
Mr.禾
·
2023-11-04 06:56
C++
c++
用C++编程实现对传输信息的凯撒加/解密
charstr[],intn)str:明文字符串n:加密时的偏移量,n>0时后移n位,n0时后移n位,n#include#include#include#include#includeusingname
spaces
td
tongxinbanyungong
·
2023-11-04 05:55
c++
开发语言
算法
同态加密
[C++11]forward完美转发
&&forward(typenameremove_reference::type&&t)noexcept;//精简之后的样子std::forward(t);推导规则:#includeusingname
spaces
td
唐火
·
2023-11-04 05:53
[C++11]
算法
c++
C++11
forward
move
C++(11):forward与模板的完美转发
C++11中通过左值调用函数与通过右值调用函数,实参与形参的类型必须匹配#includeusingname
spaces
td;voidp1(int&d)//通过左值引用调用函数{coutusingname
spaces
td
风静如云
·
2023-11-04 05:52
C/C++
c++
【密码学】凯撒密码解密(C++代码实现)
#include#includeusingname
spaces
td;usingnamespaceNTL;intmain(){stringpassword="KYVBVPZJJVMVEKVVEKYVUVTFDGIVJJZFEGRJJNFIUZJKYVTLSVFWKYVBVP
Mitch311
·
2023-11-04 05:19
密码学
c++
Linux(openssl):通过编程检查证书是否为selfsign
openssl):创建selfsign证书-CSDN博客生成的正式是否为selfsign//check_cert.hpp#include#include#include#includeusingname
spaces
td
风静如云
·
2023-11-04 04:37
Linux开发
linux
Istio实战(十三)-SideCar注入
查看默认sidecar配置kubectlgetmutatingwebhookconfigurationistio-sidecar-injector-oyaml|grep"name
spaceS
elector
张志翔的博客
·
2023-11-04 03:47
Istio实战教程
istio
云原生
数据结构-栈应用括号匹配
1、顺序栈的定义2、顺序栈的入栈,出栈,取出栈顶元素,匹配判断函数3、顺序栈的运行测试4、实现代码#includeusingname
spaces
td;#defineOK1#defineERROR0#defineOVERFLOW
zmjjtt
·
2023-11-04 03:37
数据结构
数据结构-顺序表实验
1、顺序表定义2、顺序表创建、插入、删除、查找等功能的实现3、顺序表的测试运行4、实现代码#include#defineMAXSIZE100usingname
spaces
td;typedefstruct
zmjjtt
·
2023-11-04 03:36
数据结构
算法
数据结构-单链表
1、单链表定义2、单链表的创建、插入、删除、查找等功能的实现3、单链表的测试运行4、实现代码#include#include#include#includeusingname
spaces
td;#defineOK1
zmjjtt
·
2023-11-04 03:36
数据结构
【C/C++】C++中重载、重写和隐藏的区别
#includeusingname
spaces
td;classA{voidfun(){};voidfun(inti){};voidfun(inti,intj){};};重载是指同一可访问区内被声明的几个具有不同参数列
zsyyugong
·
2023-11-04 03:58
【C/C++】
c语言
c++
开发语言
上一页
147
148
149
150
151
152
153
154
下一页
按字母分类:
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
其他