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
c++的stack容器和queue容器
stack容器#define_CRT_SECURE_NO_WARNINGS#include#include#include#includeusingname
spaces
td;//栈容器,先进后出//存储基础数据类型
落落落sss
·
2023-11-30 23:43
c++
开发语言
C++继承中同名的解决方法
#define_CRT_SECURE_NO_WARNINGS#include#includeusingname
spaces
td;classFather{public:Father(){a=10;}voidfunc
落落落sss
·
2023-11-30 23:13
c++
开发语言
c++的string 容器基础操作
#define_CRT_SECURE_NO_WARNINGS#include#includeusingname
spaces
td;voidtest01(){strings1;strings2(10,'a'
落落落sss
·
2023-11-30 23:13
c++
开发语言
算法
c++的文件读写
#include#include//1:引入头文件#includeusingname
spaces
td;//把程序中的信息输出到缓冲区,然后写到文件voidtest01(){//2:定义流对象ofstreamofs
落落落sss
·
2023-11-30 23:40
c++
开发语言
定义一个Person类,包含数据成员姓名、性别和出生日期,以该类为基类,派生出学生类和职工类,在学生类中增加数据成员学号、成绩,在职工类中增加数据成员职工号和工资。其中出生日期是日期类对象。
学生信息由键盘输入(3个学生),计算学生的平均成绩和职工信息由键盘输入(三个职工),计算职工的平均工资#include#includeusingname
spaces
td;classDDate{public
妖兽喽
·
2023-11-30 23:32
c++
opencv读取二进制灰度图并显示
#include#include#include#include#include//包含OpenCV头文件usingname
spaces
td;//注意:确保这些值与Python脚本中生成数据的值匹配。
大风吹~~~~~
·
2023-11-30 23:21
opencv
人工智能
计算机视觉
CodeTON Round 6 (Div. 1 + Div. 2, Rated, Prizes!)
A.MEXanizedArray思路:我们可以发现,当k>n或者k-1>x那么就不能组成想要的答案,然后就是我们可以让0到k-1都出现,然后其余都放剩下满足最大的那个#includeusingname
spaces
td
LINDKK
·
2023-11-30 22:14
c++
算法
开发语言
C++学习寄录(九.多态)
#include#include#include#include#include#includeusingname
spaces
td;c
nice-wyh
·
2023-11-30 19:49
c++
学习
开发语言
C++学习寄录(八.继承)
publicB;A类称为子类或派生类B类称为父类或基类1.基本使用未使用继承的代码比较冗余重复#include#include#include#include#include#includeusingname
spaces
td
nice-wyh
·
2023-11-30 19:42
c++
学习
python
深入学习c++ 关键词第二部分
#includeusingname
spaces
td;constexprintmin(inta,intb){if(a(&i);*pi=4;decltype类似于auto,declt
narbit
·
2023-11-30 18:35
c++
c++
【洛谷 B2034】计算 2 的幂 题解(顺序结构+求幂)
0≤n#include#include#defineAUTHOR"HEX9CF"usingname
spaces
td;intmain(){unsignedintn;cin>>n;longp=pow
HEX9CF
·
2023-11-30 18:46
Data
Structure
and
Algorithm
c++
算法
数据结构
2021年武汉市中等职业学校学生技能大赛“网络空间安全”赛项技术规程
1/24武汉市中等职业学校技能大赛“网络空间安全”赛项规程一、赛项名称赛项名称:网络空间安全英语翻译:Cyber
spaceS
ecurity赛项组别:中职赛项归属产业:电子信息产业二、竞赛目的通过竞赛,检验参赛选手对网络
旺仔Sec
·
2023-11-30 18:09
中职网络空间安全
网络安全
C++多线程之通过成员函数作为线程入口
#include#include#include#includeusingname
spaces
td;//使用成员函数作为线程的入口并封装线程基类接口classMyThread{public://入口线程函数
yzZ_here
·
2023-11-30 17:13
c++
开发语言
C++多线程-传递普通变量,指针,引用给线程
注意点:1、传递空间已销毁2、多线程共享一块内存3、传递的指针变量的生命周期小于线程#include#include#include#includeusingname
spaces
td;classPara
yzZ_here
·
2023-11-30 17:39
c++
算法
开发语言
C++语法学习笔记十四:派生类-调用顺序-访问等级-函数遮蔽
实例代码:#include#include#includeusingname
spaces
td;//基类//类定义/类声明classHuman{public:Human(){std::cout<<"执行了
哲学的天空
·
2023-11-30 17:36
#
3.2
C++
派生类、调用顺序、访问等级、函数遮蔽
#include#include#include#includeusingname
spaces
td;classHuman{private:public://构造函数Human();Human(intm_i
昔拉天使
·
2023-11-30 17:35
C++98
11
14
17
c++
C++中通过基类指针调用派生类中定义的方法&&C++继承中的名称遮掩
C++中通过基类指针调用派生类中定义的方法&&C++继承中的名称遮掩动态绑定静态绑定C++继承中的名称遮掩dynamic_castusingname
spaces
td;classBaseA{public:
selfsongs
·
2023-11-30 17:04
C++基础部分
AtCoder Beginner Contest 253 C~F题解
官方code:#includeusingname
spaces
td;intmain(){intq;cin>>q;multisetst;while(q--){intt;cin>>t;if(t=
Roche limit
·
2023-11-30 17:30
算法
c++
图论
算法——排序算法(一)
一次查找两个元素输入:元素个数(1000以内)元素数输出:最小的两个数#include#include#defineM1001usingname
spaces
td;intmain(){intN,t,n1,
One_world_at_a_time
·
2023-11-30 17:58
算法
排序算法
快速排序
AtCoder Beginner Contest 267 (A~D)
代码如下:#include#includeusingname
spaces
td;intmain(){strings;cin>>s;if(s=="Monday")cout#include#include#definelllonglongusingname
spaces
td
睡不醒的汤姆
·
2023-11-30 17:26
AtCoder
c++
算法
双指针
前缀和
dp
AtCoder Beginner Contest 234 A~F
AtCoderBeginnerContest234点击进入我的博客阅读观感更佳A-WeirdFunction思路:模拟Code:#includeusingname
spaces
td;constintN=1e5
学不会数据库
·
2023-11-30 16:55
深度优先
算法
Atcoder beginner contest 303
A-SimilarStringAC代码:#include#include#includeusingname
spaces
td;intmain(){intn;cin>>n;strings,t;cin>>s>
沫刃起
·
2023-11-30 16:52
Atcoder
Beginner
Contest
c++
算法
动态规划
vector
set
AtCoder Beginner Contest 233
题目链接A-10yenStamp题目大意:给定两个数X、Y,问X加多少个10,使得X>=Y考点:向上取余#include#includeusingname
spaces
td;intmain(void){inta
Xuhx&
·
2023-11-30 16:51
AtCoder
AtCoder
AtCoder Beginner Contest 250
A-Goodmorning//shiran#includeusingname
spaces
td;#definerep(i,a,n)for(inti=a;i=a;i--)#definesz(x)(int)size
Shirandexiaowo
·
2023-11-30 16:19
周赛
哈希算法
算法
动态规划
AtCoder
AtCoder Beginner Contest 330 A~F
代码:#includeusingname
spaces
td;intmain(){intn,l;cin>>n>>l;intans=0;while(n--){intx;cin>>x;ans+=(x>=l);}
Code_Shark
·
2023-11-30 16:44
AtCoder
算法
oracle中创建hash索引的语句,Oracle 索引 详解 - 索引介绍
(|ASC|DESC,|ASC|DESC,...)TABLE
SPACES
TORAGELOGGING|NOLOGGINGCOMPUTESTATISTICSNOCOMPRESS|COMPRESSNOSORT
weixin_39829497
·
2023-11-30 16:11
C++ 传递数组给函数
#include#includeusingname
spaces
td;structHero{//姓名stri
Zero_to_zero1234
·
2023-11-30 15:52
C++基础
编程基础
C++ 传递指针给函数
下面的实例中,我们传递一个无符号的long型指针给函数,并在函数内改变这个值:#include#includeusingname
spaces
td;//在写函数时应习惯性的先声明函数,然后在定义函数voidgetSeconds
程子的小段
·
2023-11-30 15:43
努力学习C++
学习笔记
c++
算法
开发语言
11.28 C++作业
提示并输入一个字符串,统计该字符中大写、小写字母个数、数字个数、空格个数以及其他字符个数要求使用C++风格字符串完成#includeusingname
spaces
td;intmain(){stringstr
qjw.c
·
2023-11-30 14:51
c++
算法
开发语言
11.29 C++ 作业
初始化函数:voidinit(intw,inth)更改宽度的函数:set_w(intw)更改高度的函数:set_h(inth)输出该矩形的周长和面积函数:voidshow()#includeusingname
spaces
td
qjw.c
·
2023-11-30 14:17
c++
算法
开发语言
【HDFS】ActiveNamenodeResolver#getName
spaces
方法调用点梳理
/***Getalistofallname
spaces
thatareregisteredandactiveinthe*federation.
叹了口丶气
·
2023-11-30 14:17
HDFS全方位实战
hdfs
hadoop
大数据
类模板-----定义、调用、做函数参数、派生子类(c++)
类模板的定义、调用、类模板做函数参数#includeusingname
spaces
td;//类模板定义templateclassperson{public:person(Ta=0){this->p=a;
芯辰大海
·
2023-11-30 13:26
code测试
c++
算法
开发语言
字符指针char*用法总结
1、char*指向单个字符charch='w';char*pc1=&ch;coutusingname
spaces
td;intmain(){chararr1[]="abcdef";chararr2[]="
芯辰大海
·
2023-11-30 13:55
C++
c++
开发语言
c++面试题解(day2)
三、string类的具体实现#includeusingname
spaces
td;classString{public:String(constchar*str=NULL);//构造函数String(constString
jerichoking
·
2023-11-30 13:24
c++
c++
第8章 IO库
它将读取的数据打印在标准输出上,完成这些操作后,在返回流之前,对流进行复位,使其处于有效状态#include#includeusingname
spaces
td;std::istream&read(std
JIHHHH
·
2023-11-30 12:52
CUMTOJ数据结构作业1 problemB
每组输入为一个整数n(1usingname
spaces
td;intmin(inta,intb,intc
Redcarp
·
2023-11-30 11:21
c++ 实验
#include#includeusingname
spaces
td;templateTmy_max(T*array,intcount){assert(count>0);intmax_num=array[
shilei_c
·
2023-11-30 09:49
c++
开发语言
算法
C++ ifstream 下的中文乱码问题
先看示例代码:#include#include#includeusingname
spaces
td;intmain(){ifstreamip_file("读取.txt");//“读取.txt”与代码文件位于同一目录
AC2656
·
2023-11-30 09:49
C++文件操作
c++
开发语言
c++ day2
更改宽度的函数:set_w(intw)更改高度的函数:set_h(inth)输出该矩形的周长和面积函数:voidshow()#ifndefRECT_H#defineRECT_H#includeusingname
spaces
td
ZK12345_
·
2023-11-30 09:07
c++
卡码网 12位置互换
(整个输入中,只有一个n)接下来是n组测试数据,保证串长为偶数位(串长#includeusingname
spaces
td;voidSwap(char*a,char*b){inttemp=*a;*a=*b
十七个远方在远方
·
2023-11-30 08:57
c++基础学习
算法
数据结构
Linux(openssl):X509_verify通过ca证书的public key验证证书的签名
openssl.org)提供了方法用于通过ca证书的publickey验证证书的签名//verify_cert.hpp#include#include#include#includeusingname
spaces
td
风静如云
·
2023-11-30 07:41
Linux开发
linux
函数括号后边加冒号,并且后边跟一些数据是这个意思
的初始化列表,简单来说就是给类中的定义的变量在构造函数进行初步赋值Preson():m_a(10),m_b(20),m_c(30){}你们看到的应该类似于这样,上示例代码#includeusingname
spaces
td
心在不焉
·
2023-11-30 07:04
c++
蓝桥杯
c++
职场和发展
c++把变量添加到字符串中
#include#includeusingname
spaces
td;intmain(){stringstreamsstr;inta=3;sstr<<"valueis"<
心在不焉
·
2023-11-30 07:03
c++
c++
开发语言
后端
[蓝桥杯][2017年第八届真题]正则问题
definexfirst#defineysecond#definemem(h)memset(h,-1,sizeofh)#definemcp(a,b)memcpy(a,b,sizeofb)usingname
spaces
t
深夜面包
·
2023-11-30 07:05
题解
dfs
暴力
蓝桥杯
蓝桥杯 正则问题
实现:1#include2usingname
spaces
td;3strings;intp=0;4intdfs()5{6intans=0,t=0;7while(true)8{9if(s[p]=='('){
weixin_30346033
·
2023-11-30 07:05
蓝桥杯 正则匹配
Code:#include#include#definepiipairtypedeflonglongll;usingname
spaces
td;stringstr;intp=0;intdfs(){in
_Rikka_
·
2023-11-30 07:58
蓝桥杯
P8649 [蓝桥杯 2017 省 B] k 倍区间(前缀和+优化(桶分类))
同余的任意两前缀和组合的序列均满足k的倍数(4)余数为0的需要特判,因为余数为0的前缀和本身也满足条件实现:1.利用滚动窗口,逐个计算前缀和模k的结果,2.用桶数组统计模k对应不同余数的数量#includeusingname
spaces
td
%d%d2
·
2023-11-30 07:57
#
数学
算法
蓝桥杯
P8650 [蓝桥杯 2017 省 A] 正则问题(dfs )
利用回溯来对上一层括号中的内容进行反馈实现:若为x长度加一若为(进入递归计算(计算相当于子表达式)若为)结束当前递归若为|计算递归,并与当前长度进行比较#include#includeusingname
spaces
td
%d%d2
·
2023-11-30 07:53
#
DFS
蓝桥杯
算法
2019-01-03 L213
Theworldlostsevenastronautsof
SpaceS
huttleColumbia(哥伦比亚号航天飞机)thismonth.Itbroughthometheseriousriskthat1humansfaceintothehostileenvironsbeyondour2shelteredplanets
Berry521
·
2023-11-30 05:39
E. Kolya and Movie Theatre
为最后选择看电影的是哪一天)一开始没有把第0天的p是0用上,没想出来维护非负序列和这里可以用一个set,有点类似于滑动窗口,当窗口出去的时候我们去掉最没用的那一项就可以了#includeusingname
spaces
td
灬德布罗意的猫灬
·
2023-11-30 04:31
模拟
思维
贪心
算法
数据结构
上一页
115
116
117
118
119
120
121
122
下一页
按字母分类:
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
其他