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
STL-函数对象中的谓词
返回bool类型的仿函数叫谓词operator()接受一个参数,一元谓词operator()接受两个参数,二元谓词一元#include#include#includeusingname
spaces
td;
想要成为数据科学家的菜鸟
·
2024-01-27 20:46
C
c++
算法
开发语言
算法基础课-基础算法
#includeusingname
spaces
td;voidfzw_sort(intq[],intl,intr){if(l==r)return;inti=l-1,j=r+1,x=q[(l+r)/2];/
向来痴_
·
2024-01-27 20:45
算法
力扣 54. 螺旋矩阵(螺旋遍历)
push_back的运用:(加在最后一个元素的后面位置)#include#includeusingname
spaces
td;intmain(){vectorret;for(inti=0;ispiralOrder
蔡徐坤学C++
·
2024-01-27 20:42
算法
矩阵
leetcode
c++
算法基础课-数据结构
#includeusingname
spaces
td;constintN=100010;inthead,e[N],ne[N],idx;//初始化voidinit(){
向来痴_
·
2024-01-27 20:11
数据结构
洛谷 P1098 [NOIP2007 提高组] 字符串的展开
代码#includeusingname
spaces
td;intn,m,f,l;stringa;boolcheck(intk){if(a[k]!
欧耶2023
·
2024-01-27 19:58
算法
c++
数据结构
lc39,40-组合总数1,2
#include#includeusingname
spaces
td;intk=0,b[20];voidCombinationSum(intnum[],inttarget,intn,intt){if(target
何偶丶
·
2024-01-27 18:29
C++ 01 基础教程 03 变量和常量
03变量和常量C++01基础教程03变量和常量定义变量#includeusingname
spaces
td;//引入标准空间intmain(){//定义变量inta=3;intb=33,c=333;//输出
Python私教
·
2024-01-27 18:47
C++
c++
算法
开发语言
C++ 01 基础教程 02 输入和输出
02输入和输出C++01基础教程02输入和输出示例:录入姓名基本用法#includeusingname
spaces
td;//引入标准空间intmain(){//提示输入用户名cout>name;//输出
Python私教
·
2024-01-27 18:17
C++
c++
java
算法
【c++学习】数据结构中的栈
代码下述代码实现了栈及其接口包括对栈顶的增、删、查以及查看栈的大小用线性表实现栈#includeusingname
spaces
td;templateclassStack{private:T*data;intsize
打个赌吧
·
2024-01-27 17:01
c++
c++
学习
数据结构
判断字符串是否为回文
Sample1InputcopyOutputcopyabcdedcbayes#includeusingname
spaces
td;intmain(){intcount=0;strings;cin>>s;
延渊
·
2024-01-27 17:28
蓝桥杯
算法
c++
蓝桥杯
【UE开发】2D飞机大战Demo
2.附件:1.工程源码:GitHub-CNEarly/
SpaceS
hipBattleDemo:使用虚幻引擎C++开发Roguelike类型2D飞机大战Demo2.演示视频:
SpaceS
hipBattleDemo
CNEARLY
·
2024-01-27 17:53
UE开发
ue4
ue5
c++
《Primer C++》第五版习题:第三章
3.1这个题就是让你加个usingname
spaces
td;这样就不用写很多std::了3.2intmain(){stringstr;while(getline(cin,str));//这是读入一行//
ouliten
·
2024-01-27 15:55
c++
c++基础入门
1.1.3编写代码#includeusingname
spaces
td;intmain(){coutusin
tnnnnt
·
2024-01-27 14:04
c++
编程语言
【C++】string模拟
string讲解:【C++】String类-CSDN博客基本框架#pragmaonce#includeusingname
spaces
td;namespacewzf{ classstring { public
努力学c的楼下小王
·
2024-01-27 13:57
C++
c++
算法
二叉树读入与输出(注意cin最后一个值的判断)
92011-1-11516#include#includeusingname
spaces
td;//定义node结构体structnode{intdata;//节点的值node*left;//左子节点的指针
DC妙妙屋
·
2024-01-27 12:49
c++
算法
数据结构
1.17堆模板,黑匣子(对顶堆应用,找动态第i大的数),合并果子(哈夫曼树),荷马史诗(多叉哈夫曼树,补空叶子结点)
二叉堆树状数组P3378【模板】堆向上调整唯一,向下调整要看孩子#include#include#include#includeusingname
spaces
td;constintmaxn=1e6+3;
CQU_JIAKE
·
2024-01-27 10:09
数据结构与算法(与进阶)
数据结构
算法
227. Basic Calculator II (M)
Implementabasiccalculatortoevaluateasimpleexpressionstring.Theexpressionstringcontainsonlynon-negativeintegers,+,-,*,/operatorsandempty
spaces
.Theintegerdivisionshouldtruncatetowardzero.Example1
Ysgc
·
2024-01-27 10:02
解题思考F. 解方程(二分法解方程)
Input输入数据首先是一个正整数T(1usingname
spaces
td;doubleequation(doublex);intmain(){intn;cin>>n;doubley;doubleleft
pied_piperG
·
2024-01-27 09:11
蓝桥杯
算法
职场和发展
动态规划 -- 杨辉三角
请你编程求出从最高层移动到最底层的最短路径长度#includeusingname
spaces
td;intmatrix[5][5]={{5},{7,8},{2,3,4},{4,9,6,1},{2,7,9,4,5
zhake
·
2024-01-27 09:14
信息学竞赛中的数学 习题集851-860(10题)
P4057[Code+#1]晨跑[Code+#1]晨跑-洛谷P1414又是毕业季II又是毕业季II-洛谷P2651添加括号III添加括号III-洛谷634.分数减法登录#includeusingname
spaces
td
dllglvzhenfeng
·
2024-01-27 08:10
创新
小学生C++编程入门
程序猿的数学
算法
c++
信奥中的数学
信息学竞赛中的数学
程序员的数学
CSP-J
NOIP
[C++][线程]如何利用std::thread把类的成员函数当作线程函数并传递参数
先给出代码然后分析:#include#includeusingname
spaces
td;classB{public:intage=18;voidSay(){std::cout<<"SayB"<
FL1623863129
·
2024-01-27 07:24
C/C++
c++
开发语言
数学建模
[C++][ubuntu]C++如何将char*赋值给另一个char*
方法一:直接用=,在ubuntu上测试通过,windows好像不行,代码如下:#include#includeusingname
spaces
td;intmain(intargc,char*argv[])
FL1623863129
·
2024-01-27 07:53
C/C++
c++
开发语言
算法
[C++]C++中的延时方法总结
在windows上延时#include#includeusingname
spaces
td;voidmain(){//睡眠5秒再输出Sleep(5000);//单位是毫秒std::cout#includeusingname
spaces
td
FL1623863129
·
2024-01-27 07:53
C/C++
c++
开发语言
[C++]vector遍历方式4种
#include#include#include#include#includeusingname
spaces
td;intmain(void){vectorv1;for(inti=0;i::iteratorit
FL1623863129
·
2024-01-27 07:23
C/C++
c++
蓝桥杯
开发语言
【MySQL进阶】InnoDB引擎存储结构和架构
文章目录逻辑存储结构架构内存结构BufferPool&AdaptiveHashIndexChangeBufferLogBuffer磁盘结构逻辑存储结构表空间(Table
spaces
):InnoDB使用表空间来管理存储表和索引的数据文件
小小Yi学编程
·
2024-01-27 07:40
mysql
mysql
架构
数据库
c++中strstr函数的几种实现方法
方法一:#include#includeusingname
spaces
td;
默伊清风
·
2024-01-27 07:01
笔试面试题
C和C++知识详解
C++
strstr
蓝桥杯省赛无忧 编程13 肖恩的投球游戏
#include#includeusingname
spaces
td;intmain(){intn,q;cin>>n>>q;vectora(n+1);vectordiff(n+2,0);//初始化差分数组
暗托涅瓦
·
2024-01-27 06:49
蓝桥杯省赛无忧
蓝桥杯
c++
算法
蓝桥杯省赛无忧 课件44 归并排序
01归并排序的思想02归并排序的实现03例题讲解#include#includeusingname
spaces
td;//合并两个有序数组voidmerge(vector&array,intstart,intmid
暗托涅瓦
·
2024-01-27 06:34
蓝桥杯省赛无忧
蓝桥杯
算法
排序算法
c++
归并排序
2024.1.24 寒假训练记录(7)
CF1778AFlipFlopSumCF1778BTheForbiddenPermutationCF1778CFlexibleStringCF1778AFlipFlopSum题目链接大水题#includeusingname
spaces
td
Texcavator
·
2024-01-27 04:08
2024寒假训练记录
算法
c++
24.1.25 DAY2 C++
voidinit(intw,inth)更改宽度的函数:set_w(intw)更改高度的函数:set_h(inth)输出该矩形的周长和面积函数:voidshow()代码:#includeusingname
spaces
td
_xia_12345678
·
2024-01-27 04:30
算法
今日头条编程题:雀魂启动
#includeusingname
spaces
td;/*除去雀头后的12张牌能否组成4个顺子或刻子*/boolIsOk(vectornum){intsz=num.size();if(sz==3){if(
zzl_8e30
·
2024-01-27 04:39
day1 C++
提示并输入一个字符串,统计该字符中大写、小写字母个数、数字个数、空格个数以及其他字符个数要求使用C++风格字符串完成#include#includeusingname
spaces
td;intmain()
kdhbdsj8494
·
2024-01-27 03:17
c++
开发语言
day2 C++
初始化函数:voidinit(intw,inth)更改宽度的函数:set_w(intw)更改高度的函数:set_h(inth)输出该矩形的周长和面积函数:voidshow()#includeusingname
spaces
td
kdhbdsj8494
·
2024-01-27 03:17
算法
c++
开发语言
day3C++
#includeusingname
spaces
td;classPer{private:stringname;intage;double*height;double*weight;public:Per()
kdhbdsj8494
·
2024-01-27 03:43
c++
开发语言
算法运行超时预估算
看个例子:#include#include#includeusingname
spaces
td;intmain(){clock_tstartTime,endTime;startTime=clock();/
河南-殷志强
·
2024-01-27 02:26
算法与数据结构的碰撞经典汇总
笔记
算法
超时
估算
运行效率
翻硬币-贪心
思路:其实这道题就是比较与给出的字符串的不同,翻转的时候,只需要考虑当前的一步就行;代码:#includeusingname
spaces
td;stringstr1,str2;autoturnover(chars
fchampion
·
2024-01-27 02:18
蓝桥杯每年真题
c++
算法
开发语言
错误票据-蓝桥杯
思路:其实只是排序一下,然后遍历,如果两个值差2,则输出两个值的平均数,如果两个数差值为0,那么则这个值就是重复的值代码:#include#include#includeusingname
spaces
td
fchampion
·
2024-01-27 02:16
蓝桥杯每年真题
蓝桥杯
算法
数据结构
c++:类和对象(5),运算符重载
目录运算符重载概念:+运算符重载1.成员函数重载+号2.全局函数重载+号打印结果:usingname
spaces
td;classperson{public://1.成员函数重载加号运算符//这里重载了加号运算符
小蓝lanll
·
2024-01-27 02:06
c++之旅
c++
算法
开发语言
c++:类和对象(6),继承
继承的基本语法语法:class子类:继承方式:父类子类也称派生类父类也称基类例子:#includeusingname
spaces
td;//定义父类class形状{public:void显示(){cout
小蓝lanll
·
2024-01-27 02:06
c++
开发语言
算法
c++:类和对象(1),封装
封装封装的意义一:将属性和行为作为一个整体,表现生活中的事物将属性和行为加以权限控制类中的属性和行为,我们统一称为成员属性也叫:成员属性成员变量行为也叫:成员函数成员方法格式:#includeusingname
spaces
td
小蓝lanll
·
2024-01-27 02:35
c++之旅
c++
算法
开发语言
剑指offer——矩阵中的路径(12题)
参考作者的解题思想,给出自己的所写的代码:#include#include#includeusingname
spaces
td;boo
TT_love9527
·
2024-01-26 23:19
面试&&笔试
剑指offer
回溯法
mysqldump 备份数据提示‘Access denied; you need (at least one of) the PROCESS privilege(s) for this operati
'Accessdenied;youneed(atleastoneof)thePROCESSprivilege(s)forthisoperation'whentryingtodumptable
spaces
GRANTALLPRIVILEGESON
appearappear
·
2024-01-26 23:06
mysql
CodeFoeces-1003A
代码#includeusingname
spaces
td;intmain(){intn,t,s[110]={0},ans=0;cin>>n;for(inti=0;i>t;s[t]++;ans=max(ans
ss5smi
·
2024-01-26 23:28
c++的第一天
思维导图输入一个字符串,计算大小写,数字,空格和其他字符#include#includeusingname
spaces
td;intmain(){stringstr;couta{};//分别计算大写、小写
愤怒的秃头鸟
·
2024-01-26 22:27
c++
c++day2
计算矩形的面积#includeusingname
spaces
td;classRect{intwidth;intheigh;public:voidinit(intw,inth){width=w;heigh
愤怒的秃头鸟
·
2024-01-26 22:27
c++
C++ day3
思维导图类嵌套,以及构造函数,析构函数,拷贝构造函数#includeusingname
spaces
td;classPer{private:stringname;intage;double*high;doubleweight
愤怒的秃头鸟
·
2024-01-26 22:54
c++
开发语言
CF1349F2 Slime and Sequences (Hard Version)
题目描述定义一个正整数序列p\texttt{p}p,称其是合法的当且仅当对于所有在p\texttt{p}p中出现过且>1>1>1的正整数kkk,存在iusingname
spaces
td;constintN
迷蒙之雨
·
2024-01-26 22:21
数学——多项式
c++
算法
图论
【C/C++】C/C++编程——第一个 C++ 程序:HelloWorld
示例代码//这是第一个C++程序#includeusingname
spaces
td;intmain(){cout,在C++程序
shopeeai
·
2024-01-26 22:39
C++从入门到进阶
c语言
c++
开发语言
vscode work
spaceS
torage存储位置指定以及节省占用空间
关于如何设置work
spaceS
torage的存储目录的相关设置,请参考如下连接中说明:Windows下修改VSCode工作区存储目录work
spaceS
torage_荣耀之路-CSDN博客_vscode
sidemap
·
2024-01-26 21:31
tool
visual
studio
code
快速排序基础入门
#includeusingname
spaces
td;constintN=1e5;intN;intq[];voiquick_sort(intq[],intl,intr){if(l>=r)return;inti
中北萌新程序员
·
2024-01-26 21:16
算法
上一页
61
62
63
64
65
66
67
68
下一页
按字母分类:
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
其他