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
洛谷P1789 【Mc生存】插火把
#define_CRT_SECURE_NO_WARNINGS1//用c++的头写c要不然会有一个RE#includeusingname
spaces
td;intn,m,k,x,y,ans,a[101][101
枫叶丹4
·
2023-11-16 05:10
c++
c语言
C++中的泛型编程有函数模板与类模板
并且函数模板与普通函数看起来很类似,区别就是类型可以被参数化,在使用函数模板时有两种方式:1、自动类型推到调用Swap(a,b)2、具体类型显示调用Swap(a,b)例子:#includeusingname
spaces
td
沐凡星
·
2023-11-16 04:21
c++
linux环境
编译问题
算法
c++
开发语言
C++ 类成员 有静态成员, 5只猫咪总体重。
#includeusingname
spaces
td;classCat{charkind[20];doubleweight;staticdoubletotal_weight;public:Cat();voidPrint
laocooon523857886
·
2023-11-16 04:48
算法
android c++ 保存json
jsonObject){std::ofstreamoutputFile(jsonPath);if(outputFile.is_open()){outputFile<
spaces
AI视觉网奇
·
2023-11-16 03:48
android开发
android
c++
json
C/C++交换输出 2021年9月电子学会青少年软件编程(C/C++)等级考试一级真题答案解析
(0usingname
spaces
td;intmain(){longlonginta,b;cin>>
小兔子编程
·
2023-11-16 03:15
C++编程
C++真题
c++一级真题
c++考级真题
c++考级一级真题
c++等级考试一级真题
c++交换输出
卡码网语言基础课 |链表的基础操作II
},第二,m=0,同样不在链表范围内因为要输出不止一个m,所以每当找到第m个点后,都应该将cur重新定位到虚拟头节点,以便继续进行寻找m代码编写首先实现代码的基础结构#includeusingname
spaces
td
方可申别翘二郎腿
·
2023-11-16 02:59
卡码网语言基础课
c++
卡码网语言基础课 | A+B问题IV
卡码网语言基础课|A+B问题IV题目分析算术运算符赋值运算符题目分析根据之前所学,可以初步写出如下代码:#includeusingname
spaces
td;intmain(){//定义一个变量n用于接收输入的个数
方可申别翘二郎腿
·
2023-11-16 02:29
卡码网语言基础课
c++
【C++】【STL】利用chromo来测量程序运行时间与日志时间打印精确到微秒
#include#include#include#include#include#include#includeusingname
spaces
td;classLogTime{public:LogTime
weixin_34362991
·
2023-11-16 02:14
c/c++
python
最长上升子序列模型 笔记
首先附上模板:#include#defineIOSios::sync_with_stdio(0);cin.tie(0);cout.tie(0);#defineendl'\n'usingname
spaces
td
泠楠子
·
2023-11-16 00:19
模板
dp
c++
动态规划
c++ primer 13.2.1 13.25
vectorshared_ptr可自动释放3.定义一个拷贝赋值运算符来释放对象当前的vector,并从右侧运算对象拷贝vector*/#include#include"StrBlob.h"usingname
spaces
td
RGBMarco
·
2023-11-15 23:11
C++
Primer
C++
C++
primer
C++基础——继承
继承同名静态成员处理方式7多继承8菱形继承9QA1概述继承是面型对象的三大特征之一继承用于描述类于类之间的从属关系,被继承的类称为基类或父类,继承的类称为子类2继承的基本语法#includeusingname
spaces
td
一切皆是定数
·
2023-11-15 23:09
C++语言
c++
java
jvm
C++基础——友元
友元可以定义一个类或者一个函数,定义成友元的类或者函数可以访问本类的所有成员,包含私有成员友元的三种实现:全局函数作为友元类做友元成员函数作为友元2全局函数做友元#includeusingname
spaces
td
一切皆是定数
·
2023-11-15 23:08
C++语言
c++
开发语言
coding 拿糖果
题目:N袋糖果,每次从所有非空袋子中分别取出x个,0#include#includeusingname
spaces
td;voidsolve2(){unordered_setused;intn;cin>>
访风景于崇阿
·
2023-11-15 23:38
Leetcode刷题
算法
c++
数据结构
C++基础——多态
函数重载和运算符重载动态多态:派生类和虚函数实现静态多态和动态多态的区别:静态多态:函数地址早期绑定-编译阶段确定函数地址动态多态:函数地址晚期绑定-运行阶段确定函数地址2多态基本概念#includeusingname
spaces
td
一切皆是定数
·
2023-11-15 23:35
C++语言
c++
java
jvm
建图的三种方式---邻接矩阵,邻接表,链式前向星
邻接矩阵#includeusingname
spaces
td;constintmaxn=1e3;intgraph[maxn][maxn];voidinit(intn,intm){//邻接矩阵for(inti
扎刺
·
2023-11-15 22:11
暑训
数据结构
c++ 多态原理详解
#includeusingname
spaces
td;//这里常考一道笔试题:sizeof(Base)是多少?
不倒翁*
·
2023-11-15 21:55
c++学习
c++
开发语言
C++ Qt 学习(八):Qt 绘图技术与图形视图
绘图技术1.1widget.h#ifndefWIDGET_H#defineWIDGET_H#include#include#include#include"CPaintWidget.h"usingname
spaces
td
Robot_Yue
·
2023-11-15 20:30
C++
Qt
学习
c++
qt
学习
场景视图
绘图
QPaint
Graphics
View
【C++】二叉树——表达式求值
只支持整数运算浮点数运算之后更新#include#include#include#include#include#include#includeusingname
spaces
td;constintN=1010
AC它真的很香
·
2023-11-15 19:49
C++
C++ 输入N本书,查找并且显示书相关信息
#include#includeusingname
spaces
td;classBook{private:chartitle[20],author[10],publish[30];constfloatprice
laocooon523857886
·
2023-11-15 19:53
算法
数据结构
将一个二维数组顺时针旋转90°
做题思路:程序清单:#include#includeusingname
spaces
td;#defineN4//将一个二维N*N矩阵顺时针旋转90°//先转置,再逆序/*123415913139515678
CRAYONtutu
·
2023-11-15 19:18
数组
二维数组
Giga
Spaces
Announces Upcoming Release of It's Second-Generation Cloud-Enablement Platform
OnMarch7atCloudConnect2011,Giga
Spaces
announcedthatit'ssecond-generationcloudenablementplatformisslatedforreleaseinsecondquarterof2011
weixin_30788239
·
2023-11-15 18:53
devops
shell
java
洛谷P5960 【模板】差分约束算法
代码实现#include#includeusingname
spaces
td;constintN=1e6+10;constintINF=0x3f;intst[N],n,m,w[N],ne[N],he
zzx71967168
·
2023-11-15 18:07
算法
图论
洛谷---P5960---差分约束算法(模板)
差分约束的思想可以参考这篇博客:差分约束入门实现代码#include#include#include#includeusingname
spaces
td
Ashen_ffm
·
2023-11-15 18:03
C++
差分约束
洛谷
差分约束
SPFA
C++
洛谷
P5960
洛谷OJ:P5960 【模板】差分约束算法
#include#include#include#include#include#include#include#includeusingname
spaces
td;#definemaxn5005#definelllonglongintn
信仰..
·
2023-11-15 18:57
图论
HDU - 1276 (士兵队列训练问题)
点此进入链接:题目链接思路1,直接数组模拟思路2,用队列#include#include#includeusingname
spaces
td;constintmaxn=100010;constintMAXL
Dunyb
·
2023-11-15 12:30
~~~~~STL容器~~~~~
c++之xml的创建,增删改查
#include"F:/EDGE/tinyxml/tinyxml.h"#include#include#include#pragmacomment(lib,"ws2_32.lib")usingname
spaces
td
萝卜嘞~
·
2023-11-15 09:19
c++
笔记
c++
xml
开发语言
C++标准模板库(STL)——string字符串
STL——string字符串概念:c++中方便对string字符串使用,避免C语言的字符型数组存放字符串头文件:#includeusingname
spaces
td;//两个都要有定义:stringstr
久㳸
·
2023-11-15 08:43
字符串
c++
数据结构
stl
算法
类和对象(5):Date类详解
//Date.h#includeusingname
spaces
td;#includeclassDate{public:Date(intyear=1,intmonth=1,intday=1){assert
行十万里人生
·
2023-11-15 08:40
C++
c++
开发语言
1024程序员节
查找算法:C++顺序查找、二分查找,代码、性能对比
2、能够随机访问,例如数组,链表就不行了下面程序对比了在一个有序数组中查找效率#include#include#includeusingname
spaces
td;intmain(){constintN=
awhuter
·
2023-11-15 08:28
数据结构与算法
算法
高精度预取模+哈希:CCPC2023深圳M
https://vjudge.net/problem/CSG-1249对于取模操作,我们可以预处理,则三数之和只能是0,M,2M0,M,2M0,M,2M然后哈希一下即可#includeusingname
spaces
td
Qres821
·
2023-11-15 07:06
哈希
高精度
C++ DAY2
#includeusingname
spaces
td;classRect{private:intwidth;intheight;public:Rect(intw,inth):width(w),height
2301_77321548
·
2023-11-15 07:52
c++
开发语言
C++ DAY1
#includeusingname
spaces
td;voidfun(inta,intb){intt;t=a;a=b;b=t;cout<<"int:a="<
2301_77321548
·
2023-11-15 07:51
c++
算法
OpenGL光照篇--光照贴图--12
程序:#include#include#include#include#include#include#include#include#includeusingname
spaces
td;voidframebuffer_size_callback
牛神自
·
2023-11-15 06:23
OpenGL学习笔记
opengl
XTU OJ 1090 学习笔记
#includeusingname
spaces
td;typedeflonglongLL;LLa[40];intmain(){intn;while(~scanf("%d",&n)){if(nusingname
spaces
td
三冬四夏会不会有点漫长
·
2023-11-15 06:15
算法竞赛
湘大
XTU
OJ
学习
笔记
算法
C/C++计算乘积 2021年9月电子学会青少年软件编程(C/C++)等级考试一级真题答案解析
0usingname
spaces
td;intmain(){longlonginta,b;cin>>a>
小兔子编程
·
2023-11-15 06:57
C++编程
c++计算乘积
c++大位数乘法
c++乘法运算
c++一级真题
c++考级一级真题
c++等级考试一级真题
C/C++轻量级并发TCP服务器框架Zinx-框架开发001: 读取标准输入,回显到标准输出
Kernel类中实现run方法完整代码实现参考-非项目使用#include#include#include#include#include#include#include#includeusingname
spaces
td
大大枫
·
2023-11-15 06:57
c语言
c++
tcp/ip
问题 G: Girls and Boys(最大独立集)
由于未知编号对应性别,故进行两次作图详细看下图,该图为转载:AC代码(较转载代码修改过,源代码无法AC):#include#includeusingname
spaces
td;#defineN1500inte
%d%d2
·
2023-11-15 05:48
#
二分图
算法
c++
C++ explicit关键字的作用
explicit关键字只针带一个参数的构造函数有效#includeusingname
spaces
td;classA{public:A(inttemp)//普通构造函数{a=temp;coutusingname
spaces
td
Zlb2214
·
2023-11-15 05:42
c++
开发语言
九、InnoDB引擎
BufferPool2.ChangeBuffer3.AdaptiveHashIndex4.LogBuffer2.3磁盘结构1.systemtablespace2.File-Per-TableTable
spaces
3
Luo_xguan
·
2023-11-15 04:33
MySQL
MYSQL
InnoDB
2023NOIP A层联测31-异或连通
有qqq次询问,每次给出一个xxx,若ci⊕xusingname
spaces
td;#definelllonglongconstintN=1e5+1;intn,m,Q,K,q[N];longlongsum
dygxczn
·
2023-11-15 03:13
算法
数据结构
周赛题目小结
代码如下:#includeusingname
spaces
td;inta[]={0,1,2,3,4,5,6,7,8,9};in
算法 王耀民
·
2023-11-15 03:57
笔记
总结
学习
蓝桥杯第三场双周赛(AK)
#includeusingname
spaces
td;#defineLLlonglong#definepbpush_back#definexfirst#defineysecond#defineendl'\
fzzf592
·
2023-11-15 03:25
蓝桥杯
职场和发展
如何在IDEA内设置启动参数和环境变量
点击EditConfiguration2、设置页面2.1、属性信息#VMArguments是设置的虚拟机的属性#VMoptions#环境变量参数非虚拟机参数需要指定-D参数-server-XX:Meta
spaceS
ize
Space Tripper
·
2023-11-15 02:22
intellij-idea
java
intellij
idea
Springboot 设置启动内存
java-jar运行springboot项目时内存设置java-Xms64m#JVM启动时的初始堆大小-Xmx128m#最大堆大小-Xmn64m#年轻代的大小,其余的空间是老年代-XX:MaxMeta
spaceS
ize
暮晓引流软件
·
2023-11-15 02:50
java
spring
boot
java
jvm
服务器
intellij-idea
C++ OJ习题练习(三)函数重载
程序如下,请完善该程序的设计:#includeusingname
spaces
td;intmin(int[],int);doublemin(double[],int);floatmin(float[],int
小宇0926
·
2023-11-15 00:09
C/C++
c++
oj系统
C++ OJ习题练习(二十一)设计整型链表类List
链表结点用如下结构定义:structNode{//结点的结构intdata;Node*next;};链表类List有一个数据成员head,类型是Node*根据题目要求完善下面的程序:#includeusingname
spaces
t
小宇0926
·
2023-11-15 00:09
C/C++
c++
链表
oj系统
C++ OJ习题练习(一)打印图形
请完善下面的程序:#include#includeusingname
spaces
td;intmain(){intn;//你的代码将被嵌在这里return0;}InputDescription从键盘录入一个正整数
小宇0926
·
2023-11-15 00:39
C/C++
c++
oj系统
C++:OJ练习(每日练习!)
#includeusingname
spaces
t
黑夢
·
2023-11-15 00:33
C++练习
c++
开发语言
深度学习
学习
算法
数据结构
c语言
集美大学校赛 B,C
#includeusingname
spaces
td;constintN=2e5+5;typedeflonglongll;typedefpair
Unlimitedz
·
2023-11-15 00:02
组合数学
图论
c语言
算法
c++
双链表插入删除
#include#include#includeusingname
spaces
td;//带头指针的双链表typedefstructDNode{intdata;structDNode*next,*prior
Cht_t
·
2023-11-15 00:24
ds
c++
开发语言
上一页
134
135
136
137
138
139
140
141
下一页
按字母分类:
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
其他