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
【Kubernetes】Docker + K8s 实践之路(K8s 实战篇)
可以跟一个或者同时跟多个参数,可以按namespace、label等筛选,也可以扩展更多信息、查看资源kubectlgetall#查看所有资源的信息kubectlgetpod/svc/deployment/nodes/name
spaces
Ezrealer
·
2023-11-28 06:46
【Kubernetes】
C++: 类的成员函数声明的时候后面加const
#includeusingname
spaces
td;classA{intdata;public:A(intda=100)
饿不坏的企鹅
·
2023-11-28 06:32
c++
c++
数据结构与算法编程题31
判断给定二叉树是否是完全二叉树#define_CRT_SECURE_NO_WARNINGS#includeusingname
spaces
td;typedefcharElemType;#defineERROR0
爱发明的小兴
·
2023-11-28 05:35
算法与数据结构
数据结构
C++实现互斥锁与读写锁
互斥锁#includeusingname
spaces
td;//锁标志位//true表示以上锁,false表示未加锁boollock_flag;//CPU硬件指令支持,此函数执行一气呵成boolTestAndSet
做一只大熊猫
·
2023-11-28 05:59
Linux
学习
c++
使用sizeof计算含有虚函数的类对象的空间大小
前提条件:32位WinNT操作系统#includeusingname
spaces
td;classBase{public:Base(intx):a(x){}voidprint(){cout<<"base"
灬烟花易冷灬
·
2023-11-28 04:34
C++面试
c++
csp游戏201712-2
#includeusingname
spaces
td;intmain(){intn,k;queueq;cin>>n>>k;for(inti=1;i<=n;i++)q.push(i);intj=1;while
容与0801
·
2023-11-28 04:33
csp
c++
csp
队列
csp非零段划分202109-2
本题可以拆解为两部分:1.求非零段的段数2.确定合适的p1.求非零段段数intNotzero(intn)//n为数组的长度{intcount=0;for(inti=1;iusingname
spaces
td
容与0801
·
2023-11-28 04:33
csp
c++
csp
set
非连续最大子序列和
tpId=230&tqId=1832016&ru=/activity/oj&qru=/ta/dynamic-programming/question-ranking#includeusingname
spaces
td
容与0801
·
2023-11-28 04:33
算法
动态规划
使用sizeof计算虚拟继承的类对象的空间大小
#includeusingname
spaces
td;classA{};classB{};classC:publicA,publicB{};classD:virtualpublicA{};classE:virtualpublicA
灬烟花易冷灬
·
2023-11-28 04:02
C++面试
c++
CF 1900B Laura and Operations 学习笔记
也就是说有a个1,b个2,c个3,每一次可以删除两个不同的数字,增加一个剩下的数字,比如说删除1和3,增加2,问经过多次操作,能不能使得所有数字只有1,或者只有2,只有3代码#includeusingname
spaces
td
三冬四夏会不会有点漫长
·
2023-11-28 04:19
Codeforces
学习
笔记
CF 1900A Cover in Water 学习笔记
可以把装水细胞里面的水转移到另一个细胞里面,阻塞的细胞不能进行任何操作,如果一个空的细胞左右两边的细胞都有水,该细胞也会有水(大概类似于渗透作用),问需要多少水可以使得所有的空细胞里面装满水代码#includeusingname
spaces
td
三冬四夏会不会有点漫长
·
2023-11-28 04:49
Codeforces
学习
笔记
CF 1901A Line Trip 学习笔记
链接传送门代码#includeusingname
spaces
td;constintN=60;inta[N];intb[N];intmain(){intt;scanf("%d",&t);while(t--
三冬四夏会不会有点漫长
·
2023-11-28 04:47
Codeforces
学习
笔记
烟雨行舟》 最小栈设计并实现一个MinStack类(第14周课后习题)
第14周课后习题最小栈设计并实现一个MinStack类题目是要求用类与对象的知识,我是用数据结构写了一个弹出最小栈的函数,有时间再来补上#include#includeusingname
spaces
td
shelter_G
·
2023-11-28 03:20
c++
深刻理解形参和实参的三种传递方式(值传递,地址传递,引用传递)
提示:以下是本篇文章正文内容,下面案例可供参考一、值传递在主函数中#includeusingname
spaces
td;voidmain(){inti=10;intj=i;j=20;coutusingname
spaces
td
欲弥
·
2023-11-28 03:59
形参与实参
传递
c++
指针
编程语言
2019-08-07 A1036
#includeusingname
spaces
td;intmain(){intn,grade;stringname,id,hname,lname,hid,lid,gender;intmax=-1,min
JO炮
·
2023-11-28 03:31
c++ cpp cmake opencv 深度学习模型 推理 前向部署 代码示例示意
include#include#include#include#include#include#includeusingnamespacecv;usingnamespacecv::dnn;usingname
spaces
td
lykhahaha
·
2023-11-28 02:50
c++
opencv
深度学习
电子学会C/C++编程等级考试2021年12月(三级)真题解析
nusingname
spaces
td;intplass(intn){return(1+n)*n/2;}intmain(){
码农StayUp
·
2023-11-28 02:05
算法
深度优先
c++
青少年编程
等级考试
电子学会
C++ 引用和函数高级运用
引用简介引用的作用就是给变量起别名语法:数据类型&别名=原名#includeusingname
spaces
td;intmain(){inta=10;//创建引用int&b=a;coutusingname
spaces
td
小潤澤
·
2023-11-28 01:17
双指针算法
我们需要对里面的某些值进行操作更多的时候是对一个序列来说,我们需要对前后两个值进行操作这些时候,我们就需要用两个指针去寻找满足条件的两个值代码模版for(inti=0,j=0;i#include#includeusingname
spaces
td
2301_78981471
·
2023-11-28 01:37
算法学习记录
算法
c++
笔记
动态规划入门2
*///方法一递归,找出递推式#include#includeusingname
spaces
td;constintMAXN=1000000;intarr[MAXN];
qq_42731393
·
2023-11-28 00:35
算法
1024程序员节
c++
算法
算法基础课 (一) 基础算法
进制转换#includeusingname
spaces
td;constintN=100;intn,m;strings;intx;//记录n进制转化成十进制;intans[N];intmain(){cin
ros275229
·
2023-11-28 00:23
算法基础课
acwing
算法学习
算法
c++
数据结构
洛谷题单--线性表
P3156【深基15.例1】询问学号链接:【深基15.例1】询问学号-洛谷直接输入,然后输出a[i]即可;代码:#include#include#include#includeusingname
spaces
td
ros275229
·
2023-11-28 00:22
算法学习
洛谷
算法
c++
数据结构
School training competition ( Second )
就是求三个数的中位数:#include#defineIOSios::sync_with_stdio(0);cin.tie(0);cout.tie(0);#defineendl'\n'usingname
spaces
td
ros275229
·
2023-11-28 00:19
算法学习
CF
算法
c++
代码随想录算法训练营 ---第四十六天
(j#includeusingname
spaces
td;voidtestbag(){intbagWeight,
Gemn 1
·
2023-11-27 22:59
算法
代理模式
1052 Linked List Sorting (巨坑题)
#includeusingname
spaces
td;structno
呆鱼敲代码
·
2023-11-27 22:19
pat
算法
[CF480A]Exams
#include#include#definefo(i,a,b)for(i=a;i<=b;i++)usingname
spaces
td;constintmaxn=5000+10;structdong{inta
WerKeyTom_FTD
·
2023-11-27 22:41
模拟
贪心
数据结构与算法编程题30
层次遍历二叉树(队列:先进先出)#define_CRT_SECURE_NO_WARNINGS#includeusingname
spaces
td;typedefcharElemType;#defineERROR0
爱发明的小兴
·
2023-11-27 20:40
算法与数据结构
数据结构
数据结构与算法编程题29
先序遍历二叉树(非递归)栈#define_CRT_SECURE_NO_WARNINGS#includeusingname
spaces
td;typedefcharElemType;#defineERROR0
爱发明的小兴
·
2023-11-27 20:10
算法与数据结构
数据结构
数据结构与算法编程题27
计算二叉树深度#define_CRT_SECURE_NO_WARNINGS#includeusingname
spaces
td;typedefcharElemType;#defineERROR0#defineOK1
爱发明的小兴
·
2023-11-27 20:09
算法与数据结构
数据结构
数据结构与算法编程题28
计算二叉树结点总数#define_CRT_SECURE_NO_WARNINGS#includeusingname
spaces
td;typedefcharElemType;#defineERROR0#defineOK1
爱发明的小兴
·
2023-11-27 20:32
算法与数据结构
数据结构
c语言字符串把小写转换大写字母,c语言将字符串中的小写字母转换成大写字母...
样例输入helloworld123Ha样例输出HELLOWORLD123HA#include#include#includeusingname
spaces
td;chara[100001];charans
科研留守儿童
·
2023-11-27 20:51
c语言字符串把小写转换大写字母
【C++】字符串和数字互相转换大全
以下是这些类的用法://Thisprogramillustratestheuseofsstreamobjects#include#include#includeusingname
spaces
td;int
郝同学
·
2023-11-27 20:21
C++知识圈
c++
c语言
字符串
释放C盘容量,远离卡顿,清理C盘文件
C盘只剩不到1G了,之前所有的文件基本都装到了C盘,后期又看不到具体的内存展示,又不敢乱删,找了半天,有一个好工具,
SpaceS
niffer,用过都说好,有能力的可以去捐赠一波,image.png点完之后直接下载就好了
东方小白
·
2023-11-27 19:37
C++回调实现
#include#include#includeusingname
spaces
td;//步骤1:定义回调函数指针类型typedefvoid(*CallbackFunc)(int);//步骤2:创建函数,
可爱的我啊
·
2023-11-27 18:03
c++
回调函数
Windows TCP 通信测试_1
connect、listen、accept、recv、send(win下的函数)等1、客户端democlient.cpp#include#include#include#includeusingname
spaces
td
可爱的我啊
·
2023-11-27 18:43
windows
tcp/ip
网络协议
亚马逊云科技 re:Invent 2022 - 使用 亚马逊云科技 终端用户计算创建未来的工作场所
[亚马逊云科技re:Invent2022,AmazonWork
Spaces
,CostSavings,VirtualDesktops,Work
spaces
,Appstream,SaasDelivery]本文字数
litaibai2023
·
2023-11-27 17:24
aws
云计算
软件测试|Python绘图神器——Matplotlib使用教
求最大连续bit数#importjava.util.Arrays;importjava.util.Scanner;publicclassMain{publics题解|#合并两个排序的链表#usingname
spaces
td
愤怒的小青春
·
2023-11-27 17:16
java
【题解】洛谷P2704 [NOI2001] 炮兵阵地(状压DP)
problemnew/show/P2704思路这道题一开始以为是什么基于状压的高端算法没想到只是一道加了一行状态判断的状压DP而已与普通状压并无多大区别详细见代码代码#includeusingname
spaces
td
weixin_30875157
·
2023-11-27 16:53
数据结构与算法
中序线索二叉树的前驱后继节点
代码实现:#includeusingname
spaces
td;//中序线索二叉树的前驱后继节点structTreeNode{chardata;//数据TreeNode*left,*right;//指向左
李sy同学
·
2023-11-27 16:50
二叉树
数据结构
算法
左神算法-二叉树的后继节点和先驱节点【c++实现】
#include#includeusingname
spaces
td;structNode{intm_nValue;Node*m_pLeft;Node*m_pRight;Node*m_pParent;};
木_宁
·
2023-11-27 16:17
左神算法
C++
二叉树
C++局域网从服务器获取已连接用户的列表(linux to linux)
include#include#include#include#include#include#include#include#include#include#include#includeusingname
spaces
td
木木em哈哈
·
2023-11-27 14:36
c/c++
c++
服务器
网络协议
网络编程
websocket
PAT | A1056 Mice and Rice
AC代码:#include#includeusingname
spaces
td;vectorprogrammer;vectorseq;intmain(){intnp,ng;//np:人数//ng:每组最多人数
睡不着kkk
·
2023-11-27 13:05
PTA
c++
PAT甲1056 Mice and Rice (25)(25 分)
#include#include#include#include#includeusingname
spaces
td;structmouse{intweight;boolflag;intrank;intr
所谓刹那
·
2023-11-27 13:05
PAT
1056
1059 Prime Factors (筛质数)
#includeusingname
spaces
td;mapcnt;voiddivide(longlongu){for(inti=2;i1)cnt[u]++;}intmain(){longlongn;cin
呆鱼敲代码
·
2023-11-27 13:04
算法
1038 Recover the Smallest Number(自定义排序)
思路:对比两个字符串a,b,将这两个字符串尝试拼接起来成ab与ba,如果abusingname
spaces
td;intmain(){vectorres;intn;cin>>n;for(inti=0;i>
呆鱼敲代码
·
2023-11-27 13:03
pat
算法
c++
数据结构
1020 Tree Traversals(pat甲级真题)
求先序遍历(preorder)具体题解,可以看看我的这篇文章,三种遍历求法都整理好了已知:先序与中序||后序与中序||先序与后序,求二叉树-CSDN博客本题代码AC代码:#includeusingname
spaces
td
呆鱼敲代码
·
2023-11-27 13:33
pat
算法
数据结构
pat考试
1021 Deepest Root (层序遍历解法)
#includeusingname
spaces
td;vectorson[10004];boolvis[10004];vectorlevel_order(introot){//层序遍
呆鱼敲代码
·
2023-11-27 13:33
pat
算法
数据结构
linux之rootfs (UBIFS)
上http://www.busybox.net/下载busybox源代码,目前最新的稳定版本为1.18.1,解压至Work
spaces
。以下切换到ro
一口Linux
·
2023-11-27 13:31
uboot
153寻找旋转排序数组中的最小值(二分查找)
2、示例输入:[3,4,5,1,2]输出:13、题解基本思想:折半查找#include#include#includeusingname
spaces
td;classSolution{public:
Revendell
·
2023-11-27 12:21
LeetCode
leetcode
算法
C++相关闲碎记录(1)
1、C++绘制爱心图像#include#includeusingname
spaces
td;intmain(){//心形曲线公式(x^2+y^2-a)^3-x^2*y^3=0doublea=1;doublebound
半路程序员
·
2023-11-27 12:08
c++
上一页
119
120
121
122
123
124
125
126
下一页
按字母分类:
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
其他