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++学习笔记——c++基础
C++基础1.命名空间1.1
namespace
的价值在C/C++中,变量、函数和类都是大量存在的,这些变量、函数和类的名称如果都存在于全局作用域中,可能会导致很多冲突。
ajole
·
2025-02-10 01:11
C++
c++
学习
笔记
学习方法
经验分享
C++基础知识点汇总
++是C语言的增强版;C++在C语言的基础上增加了很多新的内容;编程的思想有转变,C面向过程,C++面向对象,面向对象是通过面向过程实现的;命名空间:命名空间的作用是为了解决命名冲突的问题;定义方法:
Namespace
全都不是事喔
·
2025-02-09 23:55
c++
开发语言
模板分享:线段树(2)
Code先放代码:#include#includeusing
namespace
std;templatestructlazy_segment{private:#definels(u*2+1)#definers
pystraf
·
2025-02-09 21:41
数据结构与算法
#
数据结构
c++
算法
数据结构
线段树
通过cad中块获取块的略缩图——cad c# 二次开发
usingSystem.Drawing;usingSystem.Drawing.Imaging;usingSystem.Threading;usingColor=Autodesk.AutoCAD.Colors.Color;
namespace
IfoxDemo
yngsqq
·
2025-02-09 21:40
CAD
C#二次开发
c#
开发语言
有序数组合并(C++)
算法设计:代码:#includeusing
namespace
std;voidmerge(intA[],intB[],intC[],intp,intr){inti=0,j=0,k=0;while(i
lwj2174778797
·
2025-02-09 19:57
算法
算法
c++
数据结构
团体程序设计天梯赛-练习集 01
思路按照题面模拟即可Ac代码#includeusing
namespace
std;intma
温柔说给风
·
2025-02-09 14:26
#
天梯赛
c++
蓝桥杯
算法
组合模式
抽象代数
数学建模
贪心算法
Unity 简易的UI框架
核心内容UIType.cs
namespace
MYTOOL.UI{//////UI层级///publicenumUILayer{//////主界面层///MainUI=0,//////普通界面层///NormalUI
人生不过一瞬间
·
2025-02-09 14:55
unity
ui
命令模式
K8S日志单节点搭建 elasticsearch+kibana+fluentd
K8S日志单节点搭建elasticsearch+kibana+fluentd1.
namespace
创建创建
namespace
-logging.yaml文件,内容如下:apiVersion:v1kind:
探索小白
·
2025-02-09 09:15
K8S
logging
elasticsearch
kubernetes
大数据
PHP之hyperf学习笔记
HyperfModel,Dao,Service,Contronller路由使用文件来配置路由,就是和laravel一样的Router::addGroup(["middleware"=>["web","auth"],"
namespace
19岁开始学习
·
2025-02-09 02:17
php
学习
笔记
hyperf
C++(11):bind
bind函数可以将既有函数的参数绑定起来,从而生成一个函数对象:#include#includeusing
namespace
std;voidfunc1(intd){cout#includeusing
namespace
std
风静如云
·
2025-02-09 01:42
C/C++
c++
c++ map嵌套pair/tuple
map+pair#include#includeusing
namespace
std;intmain(){map>multiMap;multiMap["01"]={3,9.5};multiMap["02"
Universe-hello
·
2025-02-09 00:38
Ubuntu
C++教程
c++
最小生成树相关题解
Kruskal算法可以写出(因为我只会这个算法的实现)每次选择一条权值最小的边,使这条边的两头连通(原本已经连通的就不选),直到所有结点都连通#include#include#includeusing
namespace
std
于冬恋
·
2025-02-08 16:12
数据结构
算法
蓝桥杯准备 【入门3】循环结构
素数小算法(埃氏筛&&欧拉筛)以下四段代码都是求20以内的所有素数1.0版求素数#includeusing
namespace
std;intmain(){intn=20;for(inti=2;iusing
namespace
std
一闪一闪亮惊惊.
·
2025-02-08 15:05
算法
蓝桥杯
c++
C++编程题继承与多态
解:#includeusing
namespace
std;//首先看结点组织,采用结点类加数据类classObject{//数据类为抽象类public:Object(){}virtualbooloperator
workflower
·
2025-02-08 14:53
学编程
c++
开发语言
课程设计
windows
c语言
SMU winter 2025 Personal Round 2
--可以二分//假设xusing
namespace
std;#defineintlonglong#
osir.
·
2025-02-08 12:41
枚举
Docker、Kubernetes (k8s) 和 Docker Compose 的概念
<
namespaces)将应用程序及其依赖项打包到轻量级的可移植容器中
狂爱代码的码农
·
2025-02-08 09:51
docker
kubernetes
容器
推荐开源项目:@quickbaseoss/babel-plugin-styled-components-css-
namespace
推荐开源项目:@quickbaseoss/babel-plugin-styled-components-css-
namespace
babel-plugin-styled-components-css-
namespace
Ababelplugintoaddcss
namespace
s
芮奕滢Kirby
·
2025-02-08 03:34
PAT 甲级 1047
全用cin>>读入和cout#include#include#includeusing
namespace
std;map>m;intmain(){intn,k,c,course;stringname;scanf
金秋飞雪
·
2025-02-08 02:57
算法
c++
python
pat考试
面向对象程序设计-实验1
6-1求两个或三个整数中的最大数,用带默认参数的函数实现本题要求实现一个带默认参数的函数,求两个或三个整数中的最大数代码清单:#includeusing
namespace
std;intmain(){intmax
想拿高薪的韭菜
·
2025-02-08 00:47
算法
c++
开发语言
6232. 最小移动总距离 - 力扣 dp,N - Nunchucks Shop 组合数求不回文的排列,D - Yet Another Problem map记录前缀和的位置
N-NunchucksShop组合数求不回文的排列可以发现对于每个iusing
namespace
std;#defineendl'\n'#defineintlonglong//constintmod=1e9
killer_queen4804
·
2025-02-08 00:15
总结
算法
c++
c++
算法
开发语言
k8s部署rabbitmq集群
1部署集群1.1安装#创建一个中间件的命名空间kubectlcreate
namespace
middleware#创建ConfigMap,包含RabbitMQ的配置文件内容kubectlapply-frabbitmq-configmap.yaml
warrah
·
2025-02-07 22:06
岁月云——运维
kubernetes
rabbitmq
容器
获取阿里云nacos注册接口状态
importjsonimporttimeimportnacos#注册客户端defnacos_client():#配置日志记录#Nacos服务器地址SERVER_ADDRESSES="http://127.0.0.1:8848"#命名空间ID(可选)
NAMESPACE
weixin_51711897
·
2025-02-07 18:37
阿里云
oracle
云计算
【练习】PAT 乙 1047 编程团体赛
输入格式:输入第一行给出一个正整数N(using
namespace
std;intmain(){intn;cin>>n;inta[1001]={0};while(n--){strings,t;intd,f
柠石榴
·
2025-02-07 17:03
输入输出
PAT
题解
c++
算法
【原子工具】快速幂 & 快速乘
二分递归形式非递归形式模下意义的快速幂(O(logn))二分递归形式非递归形式快速乘龟速乘(O(logn)递归式非递归式快速乘(光速乘)(O(1))文献参考总结快速幂原始快速幂(O(logn))二分递归形式#includeusing
namespace
std
xiexunshizz
·
2025-02-07 05:10
算法入门
算法
c++
学习
每日一题洛谷P5725 【深基4.习8】求三角形c++
#includeusing
namespace
std;intmain(){intn;cin>>n;intt=1;for(inti=0;i
wen__xvn
·
2025-02-07 00:37
洛谷
c++
算法
java
利用多态和普通方式实现计算器功能
//利用普通方式和多态方式实现计算器功能#include#includeusing
namespace
std;//利用普通方式实现classcalculator{public://输入两个数字intnum1
长河落日O
·
2025-02-06 23:04
c++
算法
开发语言
洛谷 P3029 [USACO11NOV]【牛的阵容Cow Lineup】
描述CowLineup[BrianDeanandDanielDara,2012]FarmerJohn'sNcows(12using
namespace
std;3intn,k,ans=0;4mapsj;//
weixin_30376323
·
2025-02-06 22:25
数据结构与算法
洛谷 P2915 [USACO08NOV]奶牛混合起来Mixed Up Cows(状压DP)
题目题目描述EachofFarmerJohn’sN(4using
namespace
std;typedeflonglongLL;templateinlinevoidread(T&s){s=0;Tw=1,ch
MILLOPE
·
2025-02-06 22:24
题解————题解
动态规划——动态规划
动态规划——状压DP
算法设计-四后问题(C++)
//#include#includeusing
namespace
std;//检查当前列是否可以放置皇后boolisSafe(constvector&board,intr
minaMoonGirl
·
2025-02-06 19:37
c++
算法
开发语言
C#中输出ASCII字符表
usingSystem;
namespace
test{classProgram{staticvoidMain(string[]args){for(inti=1;i<=255;i++){charc=(
Miqiuha
·
2025-02-06 18:29
C#
C#
C++信奥赛一本通3008
#includeusing
namespace
std;intmain(){cout<<"1+2+3+4="<<"10";return0;}
顺铭12
·
2025-02-06 15:37
C++信奥赛一本通答案
c++
java
开发语言
C++信奥赛一本通3002
#includeusing
namespace
std;intmain(){cout<<"你好,世界。";return0;}
顺铭12
·
2025-02-06 15:37
C++信奥赛一本通答案
c++
java
开发语言
yolov5 c++ onnx pytorch pycharm gpu train test
数据资源参考:【Yolov5】1.认真总结6000字Yolov5保姆级教程(2022.06.28全新版本v6.1)_yolov5教程-CSDN博客代码:#include#include#includeusing
namespace
cv
mulsh
·
2025-02-06 12:50
YOLO
c++
opencv
pytorch
pycharm
c++监听键盘, C++模拟键盘输入
1、方案1:#include#include#includeusing
namespace
std;intmain(){system("chcp65001>nul");std::cout#include#includeusing
namespace
std
fK0pS
·
2025-02-06 03:08
GAME
c++ blockqueue 记录
#pragmaonce#include#include#include#include
namespace
myBlockQueue{templateclassBlockDeque{public:explicitBlockDeque
qq_43361844
·
2025-02-06 01:29
c++
并发
c++
开发语言
每日一题洛谷P5721 【深基4.例6】数字直角三角形c++
#includeusing
namespace
std;intmain(){intn;cin>>n;intt=1;for(inti=0;i<n;i++){for(intj=0;j<n-i
wen__xvn
·
2025-02-06 00:18
洛谷
c++
算法
开发语言
大一计算机的自学总结:基数排序
一、计数排序#includeusing
namespace
std;//全局变量#definen10intarr[n];inthelp[20]={0};//计数排序voidcountSort(){for(inti
WBluuue
·
2025-02-05 23:08
算法
排序算法
数据结构
c++
大一计算机的自学总结:链表的相关操作
大一计算机的自学总结:单双链表的反转一、合并两个有序链表#include#include"LinkedListFunction.h"using
namespace
std;//合并两个有序链表Listmerge
WBluuue
·
2025-02-05 23:07
链表
数据结构
c++
算法
大一计算机的自学总结:数据结构设计相关题
一、设计有setAll功能的哈希表#includeusing
namespace
std;intcnt=0,setAllTime=0,setAllValue;map>mySet;voidput(intx,inty
WBluuue
·
2025-02-05 23:37
数据结构
算法
c++
leetcode
链表
洛谷 P1387 最大正方形 C语言
输入输出样例输入#1440111111001101101输出#12思路:代码如下:#include#include#include#includeusing
namespace
qystca
·
2025-02-05 20:24
算法
二维前缀和
暴力
c++
c语言
数据结构
Pentagon
我的代码解:#include#include#includeusing
namespace
std;stringreverseString(stringstr){stringreversedStr=str;
你好 Future!
·
2025-02-05 20:20
习题
c++
算法
开发语言
【基础算法(五) 双指针】
最长连续不重复序列#includeusing
namespace
std;constintN=100010;intarr[N],s[N];intmain(){intn;cin>>n;for(inti=0;i
小新的秃头日常
·
2025-02-05 19:11
算法
数据结构
c++
题解:洛谷 P2695 骑士的工作
实现#includeusing
namespace
std;intn,m,a[20005],ans,b[20005];intm
网络骑士hrg.
·
2025-02-05 18:37
c++
经验分享
贪心算法
排序算法
华为 笔试 4.24 第二题:这一题只通过了36%why
日常实习求捞捞本科北理24届,目前已经拿nus研究生offer准备在剩下这几个月做一段软件开发实习,我之前有小公题解|#[NOIP2010]数字统计##includeusing
namespace
std;
2301_79125431
·
2025-02-05 16:24
java
如何用C++/C语言写一个简单的闹钟程序
版本1:不使用time.h头文件(简单版)//C++Alarm_Easyv1.0//MadeByCoding_Potato#include#includeusing
namespace
std;//Clock
会编程的土豆
·
2025-02-05 14:04
C++实用编程项目
c++
c语言
apache
喷漆机器人问题
#include#include#includeusing
namespace
std;constintMAX=200;constintINF=100000;intcolor[MAX];//存储每个小矩形的颜色
谛听-
·
2025-02-05 12:23
回溯
洛谷打印三角形
#includeusing
namespace
std;intn,i,cnt;intmain(){scanf("%d",&n);for(i=1;i0){//按照剩余的空位判断i-=2;for(intj=0;
葡萄989
·
2025-02-05 12:18
算法
c++
开发语言
洛谷B2122 单词翻转
代码#include#include#includeusing
namespace
std;intmain(){stringa;while(cin>>a){//
tazuh
·
2025-02-05 11:44
c++
算法
开发语言
C/C++题目字符数组-单词翻转
Simple:Input:helloworldOutput:ollehdlrow#includeusing
namespace
std;charch[510];intmain()
Zhang_Charls
·
2025-02-05 11:42
c++
字符串
c算法
蓝桥杯刷题-07-整数删除-优先队列 + 模拟链表 ⭐
//优先队列+模拟链表#include#defineintlonglong#defineendl'\n'using
namespace
std;typedefpairpii;constintN=5e5+10
椰椰荔枝糖
·
2025-02-05 09:58
刷题
蓝桥杯
链表
算法
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
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
其他