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;intmain(){staticinta[3][3]={1,2,3,4,5,6,7,8,9};int*pa[3]={a[0],a
这么帅的人啊
·
2023-12-15 19:46
洛谷官方题单P1678 烦恼的高考志愿 题解
烦恼的高考志愿思路:将学校分数排序后,找出离学生分数的最近的左边界和右边界,将两个边界点与学生分数求差,再取min注:要开longlong法1#include#include#includeusingname
spaces
td
fxc1437936516
·
2023-12-15 19:40
洛谷官方提单
算法
c++
数据结构
格拉布斯(Grubbs)准则法
#include#include#include#include#includeusingname
spaces
td;//格拉布斯表doubletable[]={0.0,0.0,0.
Joemt
·
2023-12-15 16:56
C++
格拉布斯
解答旋转词问题bug改造过程
大家先看代码:#includeusingname
spaces
td;intmain(){inta,b;stringc,d,count=1;cin>>a>>b;cin>>c;cin>>d;if(a!
2c237c6
·
2023-12-15 15:32
bug
算法
C/C++函数调用栈信息输出(backtrace & backtrace_symbols)
源代码#include#include#include#ifndef__STL_LOCKER_H__#define__STL_LOCKER_H__name
spaceS
TL{classSTL_Lo
跃龙客
·
2023-12-15 15:15
C/C++
c语言
c++
算法
给Matlab的图片加背景色
转自:http://earvinlin.
spaces
.live.com/blog/cns!5fa635e2ba4f9bb6!
superlin2008
·
2023-12-15 14:52
Matlab
matlab
colors
google
C++中string类型转换为long long类型
#includeusingname
spaces
td;intmain(){stringst
明里灰
·
2023-12-15 14:36
C++
算法
c++
类型转换
数据结构:第12关:删除链表中绝对值相等的结点
#includeusingname
spaces
td;typedefstructLNode{intdata;structLNode*next;}LNode,*LinkList;voidCreateList_R
Unen030
·
2023-12-15 14:43
数据结构
数据结构
链表
算法
Qt OpenCV 学习(六):kmeans聚类算法实现背景替换
defineMAINWINDOW_H#include#include#include#include#include#include#includeusingnamespacecv;usingname
spaces
td
Robot_Yue
·
2023-12-15 14:40
Qt
OpenCV
学习
算法
qt
opencv
BZOJ-1208: [HNOI2004]宠物收养所
id=1208代码(STL):#include#includeusingname
spaces
td;#defineinf0x7fffffffsetbst;intn,x,y,ans=0,st;intmain
AmadeusChan
·
2023-12-15 14:28
《C++新经典设计模式》之第8章 外观模式
《C++新经典设计模式》之第8章外观模式外观模式.cpp外观模式.cpp#include#includeusingname
spaces
td;//中间层角色,隔离接口,两部分模块通过中间层打交道//提供简单接口
mali378287007
·
2023-12-15 13:03
C/C++
设计模式
c++
设计模式
外观模式
CodeFoeces-588B
代码#includeusingname
spaces
td;intmain(){longlongn,s[10000],t=1,ans=1;scanf("%I64d",&n);for(inti=2;isqrt
ss5smi
·
2023-12-15 12:53
C++程序设计教程(钱能)第五章习题
函数2.使用函数声明、定义和调用,改写程序3.求整数对的最大公约数并排序4.用递归方法求解母牛问题5.编程实现6.读入C-串,并排序后输出1.递归方法计算poly函数#includeusingname
spaces
td
如意娘
·
2023-12-15 11:11
C++
C++
c# rabbitMQ简单收发消息
3、主要代码3.1发送消息usingSystem;usingSystem.Text;usingRabbitMQ.Client;name
spaceS
ender{classProgram{staticvoidMain
编程课堂
·
2023-12-15 09:19
RabbitMQ
第 12.3~12.14 大周博客
还是简化版):牛发明了一种语言,英文单词开头是元音字母的直接在后面加“cow”,不是的把最前面的单词移到最后再加“ow;经过大神的指导之后,终于开窍的我写出了以下代码:#includeusingname
spaces
td
Deep!
·
2023-12-15 09:37
大周总结
44(2023.12.7)乒乓球,扫雷,玩具人,加法
#includeusingname
spaces
td;#includestructScore1{intz;inty;};structScore2{intz;inty;};intmain(){charch=
要成为编程高手的Yu
·
2023-12-15 08:10
算法
45(2023.12.8)(求积,阶乘,魔法,剪刀石头布)
#includeusingname
spaces
td;#includeintarr[250001]={};intmain(){stringstr1,str2;cin>>str1>>str2;intL1=str1
要成为编程高手的Yu
·
2023-12-15 08:10
算法
c++
数据结构
36(2023.11.27)
#includeusingname
spaces
td;intmain(){longn,m;cin>>n>>m;intarr[10]={};for(inti=n;iusingname
spaces
td;intmain
要成为编程高手的Yu
·
2023-12-15 08:40
算法
c++
数据结构
38(2023.11.29).........
#includeusingname
spaces
td;intmain(){intn;cin>>n;intarr[201][201]={};intx=0;inty=0;inttimes=0;intsum=0
要成为编程高手的Yu
·
2023-12-15 08:40
算法
数据结构
41(2023.12.3)字符串打题
#includeusingname
spaces
td;#includeintmain(){stringstr;inttimes=0;getline(cin,str);for(inti=0;iusingname
spaces
td
要成为编程高手的Yu
·
2023-12-15 08:40
算法
c++
数据结构
35(2023.11.26):打题
幻方#includeusingname
spaces
td;intmain(){intN,h,l;cin>>N;intarr[40][40]={};intzhong=N/2;h=0;l=N/2;arr[0]
要成为编程高手的Yu
·
2023-12-15 08:09
算法
c++
数据结构
数据结构 | c++编程实现求二叉树的叶节点的个数。(递归&非递归)
目录非递归递归非递归#include#includeusingname
spaces
td;structBTNode{intdata;BTNode*left,*right;BTNode(intval):data
巧克力味的桃子
·
2023-12-15 07:24
数据结构
数据结构
c++
数据结构 | 层次遍历&求二叉树的高度(递归&非递归)
层次遍历#include#includeusingname
spaces
td;structBTNode{intdata;BTNode*left,*right;BTNode(intval):data(val
巧克力味的桃子
·
2023-12-15 07:24
数据结构
数据结构
c++
算法
C/C++: 数据结构之索引查找(分块查找)
画图举例:#includeusingname
spaces
td;/****Author:HackerHao*Create:2023.12.14**/typedefstruct{intKey;intLink
朱小呆QAQ
·
2023-12-15 06:20
c++
数据结构
c语言
Qt图像处理-OpenCv中Mat与QImage互转
,头文件,使用前需要配置好opencv#include#include#include#include#include#include#include#include#includeusingname
spaces
td
未来无限
·
2023-12-15 06:14
C++
QT程序设计
qt
图像处理
opencv
Mat与QImage互转
Mat
CPP-SCNUOJ-Problem P23. 计数排序(使用C/C++)
为避免输出过长,请输出:输入输出输出一个整数代表计算结果样例标准输入1031232233133标准输出147#include#includeusingname
spaces
td;#definemn10000005
35号同学.
·
2023-12-15 05:47
c语言
c++
算法
CPP-SCNUOJ-Problem P13. [算法课贪婪]三角形的最大周长,小白容易理解的简单方法
3#includeusingname
spaces
td;/*思路:对这些数字进行sort升序排序,从最后面开始,依次取后面三个数字;若这三个数字能组成三角形,则直接输出最大周长;若组成不了,则往前移一位,
35号同学.
·
2023-12-15 05:36
算法
数据结构
排序算法
西南科技大学C++程序设计实验十二(文件流操作)
#include#include//调用文件类库文件usingname
spaces
tdintmain(){std::ofstreamfout(“fang.txt
Myon⁶
·
2023-12-15 04:00
C++实验
c++
开发语言
西南科技大学
visual
studio
(算法练习)——循环报数问题
代码:#include#include#include#includeusingname
spaces
td;intmain(){inttot,outNum,nowNum=1;queueq;cin>>tot
晴空_万里
·
2023-12-15 04:13
算法练习题
C++实现报数
#includeusingname
spaces
td;intmain(){inth,m,n,i=0,x=0;do{m=i%5+1;h=i%10+1;if(m==h)x++;i++;
John的IT之旅
·
2023-12-15 04:41
C++
c++
蓝桥杯
p2p
链式队列的基本操作与实现(数据结构与算法)
链队列的表示与实现如下图:代码如下:#includeusingname
spaces
td;#defineMAXQSIZE100//最大队列长度typedefintQElemType;//typedefstructQnode
AII_IIA
·
2023-12-15 03:27
数据结构与算法
C/C++
链队列
数据结构
C
C++
(C++)栈的顺序存储及实现(出栈、入栈、判空、遍历、销毁)(数据结构与算法)
顺序栈结构方案一:创建栈底指针base、栈顶指针top#include#includeusingname
spaces
td;//顺序栈的结构类型#defineMaxSize50//定义栈中元素的最大个数为
AII_IIA
·
2023-12-15 03:27
C/C++
数据结构与算法
算法
数据结构
C++/C
顺序栈
出栈入栈
. 6-38.输出最大值
代码实现:#includeusingname
spaces
td;classStudent{public:Student(intn,floats):num(n),score(s){}intnum;floatscore
Fu_god
·
2023-12-15 03:52
C++题库
算法
6-46.矩阵运算
(为简化问题,矩阵中元素为2位以内整数,要求矩阵按照行列的格式输出,每个元素占3位宽度)代码实现:#include#includeusingname
spaces
td;classArray{private
Fu_god
·
2023-12-15 03:52
C++题库
矩阵
线性代数
6-45.工资与提成
根据main函数的调用以及程序的输出完成类定义,实现指定的功能代码实现:#include#include#includeusingname
spaces
td;/*请在这里写上相应的类定义*/classSalesman
Fu_god
·
2023-12-15 03:52
C++题库
c++
C++学习第5课,重载,指针,引用,
这次先上代码main.cpp#includeusingname
spaces
td;intadd_one(inta){a=a+1;returna;}intadd_one(int*a){*a=*a+1;return
Mr小熊_1da7
·
2023-12-15 03:51
6-47.时钟模拟
(使用重载++运算符实现)代码实现:/*请在这里填写答案*//*请在这里填写答案*/#includeusingname
spaces
td;classMyTime{private:intsec,min,hour
Fu_god
·
2023-12-15 03:43
C++题库
c++
《C++新经典设计模式》之第3章 工厂模式、原型模式、建造者模式
之第3章工厂模式、原型模式、建造者模式简单工厂模式.cpp抽象工厂模式.cpp工厂方法模式.cpp原型模式.cpp建造者模式.cpp简单工厂模式.cpp#include#includeusingname
spaces
td
mali378287007
·
2023-12-15 03:35
设计模式
C/C++
c++
设计模式
《C++新经典设计模式》之第2章 模板方法模式
《C++新经典设计模式》之第2章模板方法模式模板方法模式.cpp模板方法模式.cpp#include#includeusingname
spaces
td;//动态绑定,多态,稳定+变化//稳定,内部函数调用顺序固定
mali378287007
·
2023-12-15 03:04
C/C++
设计模式
c++
设计模式
模板方法模式
《C++新经典设计模式》之第16章 桥接模式
《C++新经典设计模式》之第16章桥接模式桥接模式.cpp桥接模式.cpp#include#includeusingname
spaces
td;//将抽象部分(业务功能)与其实现部分(具体的平台实现)分离
mali378287007
·
2023-12-15 03:00
设计模式
C/C++
c++
设计模式
桥接模式
sin函数的使用
#include#includeusingname
spaces
td;constdoublepi=acos(-1.0);intmain(){intn;scanf("%d",&n);printf("%f",
向来痴_
·
2023-12-15 02:27
快速排序quick_sort
输入格式:第一行一个整数n(1usingname
spaces
td;constintN=1e6+10;intq[N];voidquick_sort(intl,intr){intx=q[l],i=l-1,j
ericf~
·
2023-12-15 02:21
算法
c语言
HDU-1540 Tunnel warfare
维护每个区间左端点能向右走到的最大距离,右端点能向左走到的最大距离查询的时候,如果当前查询的节点在左子树的rmax里面话,就返回相应的反正继续递归若位于右子树的话同理可以得到结果#includeusingname
spaces
td
灬德布罗意的猫灬
·
2023-12-15 00:52
线段树
数据结构
算法
c++
E. Greedy Shopping
线段树经典题维护最大值和最小值还有区间和#includeusingname
spaces
td;usingll=longlong;constintN=2e5+10;llw[N];structSegment{
灬德布罗意的猫灬
·
2023-12-15 00:22
线段树
数据结构
算法
POJ-2777 Count Color
经典区间染色板子题#include#include#includeusingname
spaces
td;constintN=1e6+10;structSegment{intl,r,id;}tr[N>1;build
灬德布罗意的猫灬
·
2023-12-15 00:51
线段树
数据结构
c++
算法
【无标题】
#includeusingname
spaces
td;classRect{private:intwidth;intheight;public:Rect(intw,inth):width(w),height
筐猪啊
·
2023-12-14 23:58
算法
c++ |通讯录信息管理项目
参考学习于B站黑马程序员#include#includeusingname
spaces
td;#defineMAX_CAPACITY1000//联系人结构体structPerson{stringm_Name
段瑶瑶
·
2023-12-14 22:06
C++学习记录
c++
开发语言
2020蓝桥杯c组纸张大小
原来的宽度变成长度思路因为数字量比较小,直接列举出来每个数字对应的折叠次数再用对应的折叠次数设置一个for循环,进行长宽的运算要多设置一个x等于长度,以方便后面的运算代码#include#includeusingname
spaces
td
CocowhoLynn
·
2023-12-14 22:02
蓝桥杯
c语言
Qt OpenCV 学习(五):答题线识别
defineMAINWINDOW_H#include#include#include#include#include#include#includeusingnamespacecv;usingname
spaces
td
Robot_Yue
·
2023-12-14 21:17
Qt
OpenCV
学习
qt
opencv
学习
Qt OpenCV 学习(四):车道线检测
defineMAINWINDOW_H#include#include#include#include#include#include#includeusingnamespacecv;usingname
spaces
td
Robot_Yue
·
2023-12-14 21:47
Qt
OpenCV
学习
qt
opencv
学习
上一页
107
108
109
110
111
112
113
114
下一页
按字母分类:
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
其他