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
Namespace
C#:实现聚类K-means cluster算法 (附完整源码)
K-meanscluster算法以下是CSharp实现聚类K-meanscluster算法的源代码:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;
namespace
KMeansCluster
源代码大师
·
2025-04-25 21:56
C#算法完整教程
算法
c#
聚类
调不出来的问题记录(链式前向星+拓扑排序)
defineforr(i,l,r)for(inti=l;i=l;i--)#defineintlonglong#definepiipair#defineendl'\n'#definePI3.14159265using
namespace
std
啊我不会诶
·
2025-04-25 20:17
问题
算法
每日一题~ cf div3 957 D+E(若只dp,暴力枚举)
(脑袋木了)题意:nmkn长的字符,mk可以跳跃的最大距离(每次跳跃的距离1using
namespace
std;voidsolve(){intn,m,k;cin>>n>>m>>k;strings;cin
窜天遁地大吗喽
·
2025-04-25 19:11
每日一题
算法
c++类 求长方体面积和体积
#includeusing
namespace
std;classCube{public://设置长voidsetL(intl){m_L=l;}//获取长intgetL(){returnm_L;}//设置宽
小蜗 strong
·
2025-04-25 14:06
c++
开发语言
NOIP2013 提高组.转圈游戏
10k×m)mod n(x+10^k\timesm)\modn(x+10k×m)modn,如果直接计算一定会超时,因此可以使用快速幂进行优化代码#include#include#includeusing
namespace
std
Ayanami_Reii
·
2025-04-25 09:32
c++
算法
笔记
Acwing161周赛题解
A#include#include#includeusing
namespace
std;intgcd(inta,intb){returnb?
Ayanami_Reii
·
2025-04-25 09:01
算法
笔记
c++
C++_Primer_Plus学习笔记-第三章
,未直接实现再计算机硬件中3.1命名空间的using声明1.命名空间作用域操作符(::):编译器从操作符左侧名字所示作用域寻找右侧对象2.using声明完成之后可以直接访问命名空间的名字**using
namespace
誓言0817
·
2025-04-25 08:28
C++
学习笔记
Unity 定时器
usingSystem;usingSystem.Collections;usingSystem.Collections.Generic;
namespace
MYTOOL{publicclassTimerManager
人生不过一瞬间
·
2025-04-25 04:27
unity
游戏引擎
Unity学习笔记:来自于C#自带的System中的知识
namespace
定义一个命名空间命名空间是在类以上,方便分类以及限制类的调用public公有private私有protetced受保护的能够在本类和子类调用Internal同一个程序集中调用二进制计算方法
努力长头发的程序猿
·
2025-04-25 03:55
C#
Unity
System
C#
Unity
System
C++ IO流作业
流:若干字节数据从一端到达另一端我们叫做流流类体系:流对象,和流运算符>>using
namespace
std;voidtestostream(){cout#includeusing
namespace
std
huyaoyuyue
·
2025-04-25 03:25
c++
visual
studio
c语言
C/C++常用函数汇总
(或者直接万能头#include)√(1):isalpha(ch)若ch是字母返回非0值,否则返回0:#includeusing
namespace
std;intmain(){charc1='a';charc2
三元湖有大锦鲤
·
2025-04-25 03:24
ACM
c++
c语言
visual
studio
开发语言
算法
c++鸡兔同笼
1#include2using
namespace
std;3intmain()4{5inta,b,x,y;6a=35,b=94;7x=a*2-b/2;8y=b/2-a;9cout<<"x="&
liujunsongljs
·
2025-04-25 02:14
二叉树---数据结构
#include"stdafx.h"#include#include#includeusing
namespace
std;typedefintElemtype;typedefstructTree{Elemtypedata
仗剑天涯津一
·
2025-04-24 17:43
二叉树
遍历
叶子节点
高度计算
递归
【k8s】docker、k8s、虚拟机的区别以及使用场景
(二)隔离性Docker的隔离性基于Linux的
namespace
和cgroups技术,隔离性相对较弱,容器之间共享宿主机的操作系统内核。
时迁247
·
2025-04-24 14:48
云原生
kubernetes
docker
容器
zbar+opencv配合实现条码识别
1.安装opencv2.安装zbar3.注意程序中链接库配置#include#include#include#include#include#includeusing
namespace
std;using
namespace
cv
我是是是是是西红柿
·
2025-04-24 08:45
linuxC/C++
opencv
zbar
条码识别
委托与事件及匿名函数和Lambda表达式简单介绍
namespace
WeiTuoAndShiJian{classTest//用于测试{publicActiona1;publicvoidDo(inta,Actionfun){Console.WriteLine
风吹夜的雨
·
2025-04-24 03:12
c#的学习记录
c#
Kubernetes命名空间详解
目录目标版本官网概述
namespace
(命名空间、名称空间)注意事项基本命令查看
namespace
列表查看所有Pod的
namespace
查看单个Pod的
namespace
查看同一个
namespace
下的所有
我的身前一尺是我的世界
·
2025-04-24 02:34
Kubernetes
云原生
k8s资源配额
k8s命名空间
k8s限制资源
k8s名称空间
【数据结构入门训练DAY-21】信息学奥赛一本通T1334-围圈报数
其中nusing
namespace
std;intmain(){intn,m;intsum
不会计算机的捞地
·
2025-04-24 00:20
数据结构入门训练
算法
unity socket 客户端和c#服务器通信
usingSystem.Collections.Concurrent;usingSystem.Linq;usingSystem.Net;usingSystem.Net.Sockets;usingSystem.Text;usingSystem.Threading;
namespace
Lyx
憨豆人生
·
2025-04-23 17:02
服务器
c#
unity
tcp/ip
C++:继承中的构造函数和析构函数
#includeusing
namespace
std;classBase{public:Base(){coutusing
namespace
std;//该类中仅提供了有参构造函数,无默认构造函数classBase
青瓦松
·
2025-04-23 16:25
C++入门
c++
C#之 简易的服务器与客户端
usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Net;usingSystem.Net.Sockets;
namespace
Server
爱吃苹果的小王同学
·
2025-04-23 13:40
c#
C#使用HttpListener构建一个简易的Http服务器
调用usingSystem;usingSystem.Threading.Tasks;usingDemo.Services;usingMicrosoft.Extensions.Hosting;
namespace
Demo
xxxxxue
·
2025-04-23 13:09
C#
c#
HttpListener
服务器
简单的服务器
http
C# 使用HttpListener创建简易Web服务器
usingSystem;usingSystem.IO;usingSystem.Net;usingSystem.Net.Sockets;usingSystem.Text;usingSystem.Threading;
namespace
WebServer
朱志飞
·
2025-04-23 13:07
C#
服务器
c#
前端
蓝桥杯备战——dp算法设计(找钱案例)
以下代码#include#includeusing
namespace
std;intmin(inta,intb)//要使得找钱时,张数最少,即是要求最小值。
Alaskaist
·
2025-04-23 12:28
算法
蓝桥杯
算法
第18场小白入门赛(蓝桥杯)
#includeusing
namespace
std;
running_Turtle1
·
2025-04-23 07:32
Tutorial
蓝桥杯
算法
[16届蓝桥杯 2025 c++省 B] 产值调整
这题枚举就行了,根据题意不断/2,int自动向下取整,注意纯模拟会tle,需要判断一下,你会发现几个数不断/2,他们会趋于相同,两个数相加/2就是平均数嘛,后面他们肯定会趋于平均的#includeusing
namespace
std
a东方青
·
2025-04-22 23:42
蓝桥杯
c++
蓝桥杯
算法
埃氏筛选素数(C++)
#includeusing
namespace
std;intvis[10000];intmain(){intn=1000;intm=sqrt(n+0.5);for(inti=2;i<=m;i++)if(!
东风街大饼工厂
·
2025-04-22 22:36
算法实现
c++
埃氏筛法
奇异递归模板设计模式-CRTP
首先写一个最简单的奇异递归第一个例子//奇异递归需要用到c++的模板特性#includeusing
namespace
std;//基类templateclassAnimal{public:staticintCounter
2301_80355452
·
2025-04-22 22:34
设计模式
c++
算法
c++日常练习(13)-----数组加一
例如:输入digits=[1,2,3]输出:[1,2,4]输入digits=[4,3,2,1]输出:[4,3,2,2]提示:1using
namespace
std;#defineNUM10voidArr(
秘密之乡
·
2025-04-22 11:22
练习
c++
学习
PTA | 寻宝图
输入格式:输入第一行给出2个正整数N和M(1using
namespace
std;strings[100010];map>v;map
三流搬砖艺术家
·
2025-04-22 09:38
PTA
算法
数据结构
c++
动态规划
图论
Vs2019通过后台方式启动一个控制台程序(隐藏黑色窗口)
#include#include#include#includeusing
namespace
std;#pragmacomment(linker,"/subsystem:\"windows\"/entry
systemyff
·
2025-04-22 07:56
杂谈
c++的特性之一 多继承
一个子类可以获取多个父类的属性和方法,从而组合不同父类的功能来创建更复杂的类格式:class派生类名称:继承方式1基类1,继承方式2基类2{派生类自己新增的特性};三姓家奴吕布#includeusing
namespace
std
?!714
·
2025-04-22 06:22
c++
算法
开发语言
STL--手撕一个简单的vector
push_backpop_back[]iterator_beginiterator_end下面的程序简单的实现了一个vector,只是简单的实现,并不涉及到一些高级功能,我们的模板如下#include#includeusing
namespace
std
LyaJpunov
·
2025-04-21 17:37
c++
c++
开发语言
算法
dijkstra(堆优化)算法代码+理解
###堆优化使用情况(n和m一个级别的时候)```#include#definePIIpair//first存距离,second存起点using
namespace
std;constintN=5e5+10
Myq70111
·
2025-04-21 16:03
算法
图论
为什么将 Redux 替换为 GraphQL 是个好主意?
题解|#点和圆的关系#1题解|#点击消除##includeusing
namespace
std;intm饿了么二面4.23介绍部门业务自我介绍数据库怎么设计的如果增加一个好友功能,这个表怎么设计如果说用户查询过慢怎么解决
2301_78234743
·
2025-04-21 15:30
java
Opencv鼠标回调函数[SetMouseCallBack]
#include#includeusing
namespace
std;using
namespace
cv;Matimg;voidonMouse(intevent,intx,inty,intflags,void
NCUTer
·
2025-04-21 15:30
OpenCV
C++
opencv
计算机视觉
c++
C++:
namespace
命名空间详解
C++:
namespace
命名空间详解1、命名空间的主要用途:解决命名冲突。
青瓦松
·
2025-04-21 14:25
C++入门
c++
QT 引入QSS
file.open(QFile::ReadOnly);\if(file.isOpen())\{\qApp->setStyleSheet(file.readAll());\file.close();\}\}#endif
namespace
GlobalSpace
余又年
·
2025-04-21 13:48
QT
qt
数据结构习题:栈-车厢调度
02栈的应用:车厢调度就是将SSHSHS这种字符串通过栈来排序程S前H后#includeusing
namespace
std;constintMax=10;structStack{chardata[Max
Sc Turing
·
2025-04-21 01:36
数据结构
c++
算法
整人小代码,无毒无害
#include#includeusing
namespace
std;intmain(){inta,b,c,d,e,f,g;cout>a;cout>b;system("colorC4");cout>c;cout
一个普普通通的Windows11
·
2025-04-20 23:24
c++
算法
数据结构-栈-代码实现
#include#includeusing
namespace
std;template#defineMAXSIZE100classStack{private:Tarr[MAXSIZE];inttop;public
肖晶雄
·
2025-04-20 20:04
数据结构
c++
算法
c++ 游戏_恶魔轮盘赌
代码#include#include#include#include#include#definerandom(a,b)(rand()%(b-a+1)+a)using
namespace
std;inta1
༺ཌༀ 吃菠萝的小狼 ༀད༻
·
2025-04-20 19:27
c++
游戏
开发语言
数据结构
算法
图论
C++ 栈
理论原理:顺序栈代码实现:#include#includeusing
namespace
std;#defineMAX10templatestructStack{Tdata[MAX];intsize;Stack
漂流的方舟
·
2025-04-20 15:08
C++数据结构与算法
c++
算法
开发语言
c++自定义栈
#includeusing
namespace
std;templateclassMyStack{public:MyStack(intsize);//初始化是要指定stack的大小~MyStack();boolisEmpty
赵燕玲是我对象
·
2025-04-20 15:37
算法练习
C++
模板类
动态数组
栈
数据结构
cmake使用教程
示例:示例基础编译流程先建立一个项目文件夹project1,在文件夹里面建立一个名为helloSLAM.cpp的文件://helloSLAM.cpp#includeusing
namespace
st
四夕小一冰
·
2025-04-20 11:08
cmake相关
c++
天梯赛DP汇总
出的貌似比较少,在前面的题中(L1,L2,L3中的1,2题)涉及到的有一定思维量但是也不是特别难,仔细想想还是可以做的1.记忆化搜索:PTA|程序设计类实验辅助教学平台AC代码:#includeusing
namespace
std
CoCoa-Ck
·
2025-04-20 11:37
深度优先
图论
算法
天梯赛数据结构合集
1.集合操作:PTA|程序设计类实验辅助教学平台主要是注意set的取交集操作,AC代码:#includeusing
namespace
std;intn,m,k;seta[60];intmain(){cin
CoCoa-Ck
·
2025-04-20 10:34
数据结构
算法
c++
[AtCoder-nikkei2019_2_qual_d] Shortest Path on a Line
#include#include#include#include#include#defineintlonglongusing
namespace
std;typedefpairpii;con
Windsight
·
2025-04-20 10:30
图论
算法
【BZOJ】1419 Red is Good
i][j]表示开一局i红j黑的游戏的期望收益,然后f[i][j]可以由f[i-1][j]和f[i][j-1]转移要滚动#include#include#definecintconstint&using
namespace
s
Pure_W
·
2025-04-20 08:47
BZOJ
C++ std::thread 线程创建和启动
02使用方法std::thread使用很方便,以下是一个简单的示例代码:#include#includevoidmyTask(intid){std::cout#includeusing
namespace
std
爱C++的小笨
·
2025-04-20 08:17
c++
上一页
12
13
14
15
16
17
18
19
下一页
按字母分类:
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
其他