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
C++之substr的简单用法
C++之substr的简单用法eg:b=a.substr(3,10);//第一个放开始截取的下标,第二个放要截取多长#include#includeusingname
spaces
td;intmain()
踏过山河,踏过海
·
2023-12-02 23:44
刷遍蓝桥杯
c/c++知识二次稳固
c++
算法
哈希算法
nginx html 缓存及不缓存配置
server_namelocalhost;error_page500502503504/50x.html;location/{root/Users/huangqingpeng/Desktop/work
spaces
oToyix
·
2023-12-02 22:26
linux常用基础技能及服务
#
Nginx
nginx
缓存
html不缓存
css缓存
2019校招深信服编程题(找出前10个访问网站的id发奖金)
#include#include#includeusingname
spaces
td;intmain(){sets_users;//使用set的目的就是去重,只插入
XDgbh
·
2023-12-02 22:52
网易2020校招笔试- 前端开发工程师(正式批) 编程题解
最小位数和#include#includeusingname
spaces
td;stringfun(intnumber){stringstr="";if(number9){str='9'+str;number
六寸光阴丶
·
2023-12-02 22:30
Android 音视频入门之C++入门序列(二)- 函数
;*num1=*num2;*num2=temp;}C++写法//&代表是引用voidchange2(int&num1,int&num2){std::cout//.h只写声明,不写实现usingname
spaces
td
AncelyF
·
2023-12-02 21:52
学习
c++
Android 音视频入门之C++入门序列(四)- 函数构造
C++和Java类型还是非常多的构造写法也很类似构造函数#includeusingname
spaces
td;//C#.net也有命名空间//对象默认会有一个指针classAnimation{//空参构造函数
AncelyF
·
2023-12-02 21:52
学习
c++
十六章第七题
#includeusingname
spaces
td;#include#includeconstintnum=51;vectorlotto(constintnum,intn=0);int
a我的
·
2023-12-02 20:48
c++
c++day1
提示并输入一个字符串,统计该字符中大写、小写字母个数、数字个数、空格个数以及其他字符个数要求使用C++风格字符串完成#includeusingname
spaces
td;intmain(){stringstr
ZK12345_
·
2023-12-02 19:17
c++
c++ day3
#includeusingname
spaces
td;classPer{private:stringname;intage;double*hight;double*weight;public:Per(stringname
ZK12345_
·
2023-12-02 19:17
c++
c++ day 4
代码整理,将学过的三种运算符重载,每个至少实现一个运算符的重载:分别是-,-=,usingname
spaces
td;classStu{friendconstStuoperator-(constStu&L
ZK12345_
·
2023-12-02 19:46
c++
C++ 多态问题引入:子类和父类同名函数使用virtual实现多态
#includeusingname
spaces
td;//定义一个子类和一个父类classParent{public:Parent(inta=0){this->a=a;}voidprint(){coutb
月山知了
·
2023-12-02 18:49
C和C++
c++
开发语言
算法
使用C++编写代码实现字符串的拼接操作
C++中有多种方法实现字符串拼接,以下是两种常见的方法:方法一:使用加号“+”#include#includeusingname
spaces
td;intmain(){stringstr1="Hello"
MaxZhang666666
·
2023-12-02 18:47
编程算法
基础扫盲
c++
开发语言
北邮OJ-266-分数加法-14网研上机A
输入格式第一行为测试数据的组数T(1#includeusingname
spaces
td;intmain(){inta,b;intup,down;intt;scanf("%d",&t);for(inttime
0be47bf15d8d
·
2023-12-02 17:05
借助opencv对图片的操作
视觉SLAM十四讲》imagebasic.cpp(几何模块)主要是熟悉对图片读取、显示、按像素遍历、复制等操作该页代码用于日后查找方便(添加了部分笔记)#include#includeusingname
spaces
td
F-study
·
2023-12-02 17:32
C++11
代码
UVA 108 Maximum Sum
或更大的邻近子数组,例如在下面的矩阵中:0−2−7092−62−41−41−180−2(最大子矩阵)在左下方:92−41−18并且和为15.输入:包括一个N和NxN的矩阵N#defineN150usingname
spaces
td
Gowi_fly
·
2023-12-02 16:33
算法
算法
c++
数据结构
C++ 输入输出流
例程:#include#include#includeusingname
spaces
td;intmain(){/************输入输出
嗯哼丶是你呀
·
2023-12-02 16:55
c++
开发语言
C++中字符串的三种定义和引用方法
#include#includeusingname
spaces
td;voidfunc(constchar*var){cout#includeusingname
spaces
td;voidfunc(charvar
嗯哼丶是你呀
·
2023-12-02 16:24
c++
算法
开发语言
MIT_线性代数笔记:第 10 讲 四个基本子空间
目录四个子空间Foursub
spaces
基和维数Basis&Dimension新向量空间Newvectorspace本讲讨论矩阵的四个基本子空间以及他们之间的关系。
浊酒南街
·
2023-12-02 16:23
MIT_线性代数笔记
线性代数
笔记
MIT_线性代数笔记:第 11 讲矩阵空间、秩 1 矩阵和小世界图
目录新的向量空间Newvector
spaces
微分方程Differentialequations秩1矩阵Rankonematrices小世界图Smallworldgraphs扩展一下向量空间的含义。
浊酒南街
·
2023-12-02 16:50
MIT_线性代数笔记
线性代数
笔记
矩阵
求最大公因数,最小公倍数模板(gcd,lcm)
GreatestCommonDivisor"最小公倍数LeastCommonMultiplea与b的最小公倍数为a乘b除a和b的最大公因数即lcm(a,b)=a*b/gcd(a,b)#includeusingname
spaces
td
柏箱
·
2023-12-02 13:16
c++
算法
c++求5个人中选票书最多的并输出(cmp,struct)
#includeusingname
spaces
td;structxuanpiao{stringname;intscore;}p[5];boolcmp(constxuanpiao&a,constxuanpiao
柏箱
·
2023-12-02 13:16
c++
算法
P1443 马的遍历(视频详解,bfs,pair,bitset,queue)
视频讲解P1443#includeusingname
spaces
td;usingll=longlong;intn,m,x,y;intd[410][410];bitsetvis[410];intdx[]=
柏箱
·
2023-12-02 13:45
宽度优先
算法
146173 Gold Rush(map,pair,dfs)
#includeusingname
spaces
td;usingll=longlong;map,int>mp;booldfs(intn,intm){if(n==m)returntrue;if(n>
柏箱
·
2023-12-02 13:43
c++
算法
深度优先
编写函数求两个整数的最大公约数和最小公倍数
#include#includeusingname
spaces
td;intfnl(inti,intj);//求最大公约数的函数intmain(){inti,j,x,y;cout>i;cout>j;x=fnl
2201_75467393
·
2023-12-02 13:11
c++
定义一个Dog类,包含age,weight等属性,以及对这些属性操作的方法。
#includeusingname
spaces
td;classDog{public:Dog(intinitialAge=0,intinitialWeight=5);~Dog();intgetAge(){
2201_75467393
·
2023-12-02 13:11
c++
算法
图论
穷举法找1-100的质数,用while循环语句。c++
#include#includeusingname
spaces
td;intmain(){inti,j,k,flag;i=2;while(i<=100){flag=1;k=sqrt(i);j=2;while
2201_75467393
·
2023-12-02 13:41
c++
算法
c语言
穷举法找1-100的质数,for循环
#include#includeusingname
spaces
td;intmain(){inti,j,k,flag;for(i=2;i<=100;i++){flag=1;k=sqrt(i);for
2201_75467393
·
2023-12-02 13:41
c++
算法
c语言
11.31链表,之前的数据结构(未完,饼)
根据输入序列建立二叉树链表回顾一下二分面积最小一些性质题回顾哈夫曼树构建第十一周——哈夫曼树51225937桶排序#include#include#include#include#include#include#includeusingname
spaces
td
CQU_JIAKE
·
2023-12-02 13:38
算法
算法
C++基础 -27- 纯虚函数和抽象类
那么他就是抽象类纯虚函数格式(图片+代码段)virtualvoidshow()=0;抽象类无法被初始化抽象类的派生类中不实例化纯虚函数也无法被初始化#include"iostream"usingname
spaces
td
Wm9实验室
·
2023-12-02 13:07
C++
c++
开发语言
C++基础 -28- 友元
友元用于访问类中的所有数据成员类中的私有成员,类外不可访问定义友元的格式(友元函数必须要在类内,声明)friendvoidshow(person&b);使用友元访问类的所有成员#include"iostream"usingname
spaces
td
Wm9实验室
·
2023-12-02 13:07
C++
c++
开发语言
C++基础 -29- 友元类
友元类格式friendclassperson2;类的友元类访问类的全部成员#include"iostream"usingname
spaces
td;classperson1{public:inta;protected
Wm9实验室
·
2023-12-02 12:33
C++
c++
开发语言
如何交换两个字符串
#includeusingname
spaces
td;voidswap(char*&x,char*&y){char*temp;temp=x;x=y;y=temp;}intmain(){char*ap="hello
灬烟花易冷灬
·
2023-12-02 12:40
C++面试
c++
C++算法入门练习——堆排序
完整代码如下:#includeusingname
spaces
td;constintmaxn=1001;i
学生Ann
·
2023-12-02 12:25
算法
c++
数据结构
问题 U: 最大乘积问题(第四讲)
样例输入525-12-1样例输出20提示#includeusingname
spaces
td;intmain(){inta[2
程序员Andy.
·
2023-12-02 11:59
c++
位运算算法总结
代码:#includeusingname
spaces
td;intl
ykycode
·
2023-12-02 11:39
代码模板
简单数学
算法
位运算
lowbit
C++
区间合并算法总结
题目链接:https://www.acwing.com/problem/content/805/代码:#include#include#includeusingname
spaces
td;typedefpairPI
ykycode
·
2023-12-02 11:39
代码模板
贪心
算法
C++
区间合并
贪心
贪心算法
离散化算法总结
题目链接:https://www.acwing.com/problem/content/804/代码:#include#include#includeusingname
spaces
td;typedefpairPII
ykycode
·
2023-12-02 11:02
代码模板
简单数学
二分查找
算法
C++
离散化
去重
二分
快速排序算法的实现(C/C++)
下面是使用C/C++语言实现快速排序算法的源代码:#includeusingname
spaces
td;//交换两个元素的值voidswap(int&a,int&b)
墨如夜色
·
2023-12-02 10:14
排序算法
c语言
c++
C/C++
Oracle(2-7)Instance and Media Recovery Structures
DatabaseFiles数据库文件3、DatabaseOtherFiles其他数据文件4、DynamicViews动态视图5、LargePool6、DBBufferCache,DBWn7、ConfiguringTable
spaces
不会编程的猫星人
·
2023-12-02 10:47
Oracle学习系列
oracle
数据库
运维
linux
1294:Charm Bracelet
【算法分析】典型的01背包问题【参考代码】#include#include#include#includeusingname
spaces
td;intf[12900];intn,m,w,c;intmain
东华学黄老师
·
2023-12-02 07:23
动态规划
算法
c++
开发语言
动态规划
1229:电池的寿命
【代码】#includeusingname
spaces
td;inta[1001];intmain(){intn,d;doubleans;while(scanf("%d",&n)!
东华学黄老师
·
2023-12-02 07:53
贪心算法
c++
青少年编程
数学建模
算法
开发语言
数据结构番外—大根堆
文章目录大根堆大根堆 这一篇中我会给出一个基于C++模板实现的比较完善的heap类,你只需要简单地修改就可以把它变为小根堆#include#include#includeusingname
spaces
td
Voltline
·
2023-12-02 07:38
算法
数据结构
排序算法
k倍区间(思维)
k倍区间给定一个长度为N的数列,A1,A2,…AN,如果其中一段连续的子序列Ai,Ai+1,…Aj(iusingname
spaces
td;typedeflonglongll;#defineN100005lla
smiling~
·
2023-12-02 02:26
蓝桥杯
蓝桥杯
NOIP 2006 普及组 明明的随机数
冒泡排序#includeusingname
spaces
td;constintN=109;intn,m,a[N],b[N];intmain(){cin>>n;for(inti=1;i>a[i];for(inti
中学生信竞
·
2023-12-02 01:04
中学生信竞
排序算法
算法
leetcode
N皇后问题
//#includeusingname
spaces
td;#defineMAX100intcols[MAX];boolisValid(intn,intcur,introw){if(cur>=n||cur>
刘小小gogo
·
2023-12-02 01:57
十二月一日
#includeusingname
spaces
td;classShu{private:inta;intb;public:Shu(){}Shu(inta,intb):a(a),b(b){}voidshow
starboy551
·
2023-12-02 00:39
算法
十一月二十九日作业
#include"rect.h"#includeusingname
spaces
td;intmain(){inth=0,w=0;cout>h;cout>w;RectR1;R1.init(w,h);R1.show
starboy551
·
2023-12-02 00:09
算法
c++
十一月三十日作业
#includeusingname
spaces
td;classPer{private:stringname;intage;double*weight;double*height;public:Per()
starboy551
·
2023-12-02 00:09
javascript
开发语言
ecmascript
华为OD机试真题-素数之积-2023年OD统一考试(C卷)
输入描述:一个正整数num0usingname
spaces
td;#includeboolis_pr(intnum){boolres=true;for(inti=2;i<=sqrt(num);
2023面试高手
·
2023-12-01 22:06
华为OD机试题库2023年
华为od
c语言
华为
java
python
【算法每日一练]-图论(保姆级教程篇8 最小生成树 ,并查集篇)#修复道路 #口袋的天空 #搭配购买
#includeusingname
spaces
td;#definereregisterconstintN=1e3+5,M=1e4+5;boolf;structEdge{intu
亦歌希望你变强啊
·
2023-12-01 22:18
图论
算法
图论
深度优先
c++
数据结构
动态规划
上一页
113
114
115
116
117
118
119
120
下一页
按字母分类:
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
其他