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
PTA_乙级_1011
#includeusingname
spaces
td;intmain(){longlongA,B,C,T;//注意A+B如果特别大是可能超过int类型最大范围所以用longlong最好//在C++中,int
王佳Gre
·
2023-11-09 14:30
PTA乙级
算法
PTA_乙级_1008
最后,它整体翻转整个数组(0到N-1)#includeusingname
spaces
td;//反转数组的指定范围voidreverseArray(intarr[],intstart,intend){while
王佳Gre
·
2023-11-09 14:22
PTA乙级
算法
c++
C++ vsnprintf 函数性能测试
include#include#include#include#include#include#ifdefLinux#include#include#endif//Linux#includeusingname
spaces
td
乡村农夫
·
2023-11-09 12:12
c++
开发语言
window上共享内存的demo
写共享内存#include#includeusingname
spaces
td;#defineBUF_SIZE4096HANDLEg_EventRead;//读信号灯HANDLEg_EventWrite;
乡村农夫
·
2023-11-09 12:12
c++
验证C++ map返回引用的线程安全问题
//#include#include#includeusingname
spaces
td;classspin_lock{public:spin_lock(){}voidlock(){_mutex.lock
乡村农夫
·
2023-11-09 12:59
c++
算法
开发语言
AtCoder Beginner Contest 327 A-F
文章目录A-abB-A^AC-NumberPlaceD-GoodTupleProblemE-MaximizeRatingF-ApplesA-ab#includeusingname
spaces
td;constintN
Unlimitedz
·
2023-11-09 11:15
补题记录
深度优先
算法
图论
运算符重载(c++)
运算符重载:概念:对已有的运算符重新进行定义,赋予另外一种功能,以适应不同的数据类型1.加法运算符的重载:实现对两个数据类型相加的运算#includeusingname
spaces
td;classPerson
chunchun2021
·
2023-11-09 09:03
c++
c++
开发语言
友元(c++)
就是要用到友元的技术友元的目的是让一个函数或者类访问另一个私有成员友元的关键字:friend友元的三种实现:1.全局函数做友元2.类做友元3.成员函数做友元1.全局函数做友元#include#includeusingname
spaces
td
chunchun2021
·
2023-11-09 09:32
c++
c++
开发语言
算法
编译原理实验(二)——LL(1)文法语法分析
参考程序#include#include#include#include#include#includeusingname
spaces
antRain
·
2023-11-09 08:24
编译原理
编译原理
LL1
lambda的大小探索
#include#includeusingname
spaces
td;classPoint{public:doublex;doubley;voidprint()const{std::cout<
发如雪-ty
·
2023-11-09 08:38
C/C++基础
c++
2021年暑期训练阶段二Day2
D-FindawayE-PowerCalculusF-FindTheMultipleG-棋盘问题A-LakeCounting题意:由于最近的降雨,水在农民约翰的田地里的各个地方汇集起来,用一个NxM(1#includeusingname
spaces
td
零.12345
·
2023-11-09 08:33
数据结构
map multimapc++_C++ STL - map 与 multimap用法和区别
1#include2#include3#include4#include//std::sort567usingname
spaces
td;89//打印函数可写成模板1011//打印函数printfA12voidprintfA
weixin_39645041
·
2023-11-09 07:54
map
multimapc++
[C++]STL-map/multimap容器
map也是以红黑树为底层实现机制map的key值不可以重复,multimap的key值可以重复#include#includeusingname
spaces
td;voidPrintMap(mapm){for
Ywrby
·
2023-11-09 07:53
数据结构
2021年9月青少年C/C++软件编程(五级)等级考试试卷及答案解析
农夫和牛都位于数轴上,农夫起始位于点N(0usingname
spaces
td;intb[200100];inta[10];queueq;intn,k;voidbfs(intx){q.push(x);b[
青少年等级考试周老师
·
2023-11-09 07:53
#
C/C++(5-6)级试题合集
c语言
算法
开发语言
【C++ 学习 ㉞】- C++11 的包装器和绑定器
一般来说,可调用对象归类为以下几种:普通函数函数指针类的静态成员函数类的非静态成员函数函数对象(又称仿函数)lambda表达式#include#includeusingname
spaces
td;intadd
melonyzzZ
·
2023-11-09 07:38
C++
c++
学习
开发语言
Leetcode刷题笔记 226. 翻转二叉树
示例1输入:4/\27/\/\1369输出:4/\72/\/\9631代码#include#includeusingname
spaces
td;structTreeNode{intval;TreeNode
jialun0116
·
2023-11-09 07:02
leetcode
二叉树
leetcode
算法
实战--虚拟机用ffmpeg采集音频设备,并用rtmp推流
#include#includeusingname
spaces
td;extern"C"{#include#include#include#include#includ
、、、、南山小雨、、、、
·
2023-11-09 06:37
ffmpeg
音视频
ffmpeg
rtmp
编码器
音频编码解码
求数组的最长递减子序列 (dp)
输入包括两行,第一行包括一个正整数N(N#includeusingname
spaces
td;intdp[1002][1002];intmain(){intn,a[1002],i,j,max,maxe;while
W-Jarvis
·
2023-11-09 06:02
acm
dp
动态规划
希尔排序 原理及实现
blog...sina...com...cn/s/blog_6d88423901014vai.html原理#include#include#include#include#includeusingname
spaces
td
JingweiZhu1990
·
2023-11-09 02:29
算法
c++
希尔排序
点云学习笔记之三(未整理版)
154.80476.427-3.861txt转换pcd://将txt文件转换为pcd文件#if1#include#include#include#include#include#includeusingname
spaces
td
WODETKYCD
·
2023-11-09 02:42
点云
PCL
c++
2023年2月蓝桥STEMA评测C++中级组编程题(个人代码学习)(持续更新)
第一题编程实现:求和题目描述:有一组1到100000的正整数数据,当给定一个正整数N(1usingname
spaces
td;intmain(){intN;cin>>N;coutusingname
spaces
td
哈哈先生asd
·
2023-11-09 02:03
蓝桥STEMA
c++
思维训练4
#includeusingname
spaces
td;constintN=2e5+
Akct
·
2023-11-09 02:53
算法
蓝桥杯每日一题2023.11.8
方法一:#includeusingname
spaces
td;constintN=2e5+10;setst;strings[N];intcnt;intm[13]={0,31,28,31,30,31,30
Akct
·
2023-11-09 02:18
蓝桥杯
算法
职场和发展
13.求面积[有问题]
#include#include#includeusingname
spaces
td;voidfun(doublea,b,c){doublep,c;p=(a+b+c)/2;c=sqrt(p*(p-a)*(
Xxxx. .Xxxx
·
2023-11-08 23:59
C语言学习
算法
笔记
c语言
开发语言
学习
[POI2006]OKR-Periods of Words(KMP)
Code#include#include#defineN1000009usingname
spaces
td;intnext[N],
weixin_30922589
·
2023-11-08 23:53
[POI2006] OKR-Periods of Words——最大周期长度(扩展最小周期长度)
我们要明确周期和border两个概念周期对字符串sss和0usingname
spaces
td;constintN=1e6+
上烟雨心上尘
·
2023-11-08 23:20
题解
c++
【16】c++11新特性 —>弱引用智能指针weak_ptr(1)
use_count#include#includeusingname
spaces
td;intmain(){shared_ptrsp(newint);weak_ptrwp1;wp1=sp;cout#includeusingname
spaces
td
<( ̄︶ ̄)Okay.
·
2023-11-08 22:55
c++11新特性
c++
开发语言
1300*C. Product of Three Numbers(质数&数学)
#includeusingname
spaces
td;#defineintlonglongconstintN=2e5+5;intt,n,a[N];boolcheck(intx){if(x<2)returnfalse
陈进士学习
·
2023-11-08 21:14
codeforces
c语言
算法
开发语言
c++
质数
蓝桥等考C++组别六级 007
3){default:cout>m;switchm%3:{case0:cout>m;switch(m%3){default:cout>m;switch(m%3){case0:coutusingname
spaces
td
星卯教育tony
·
2023-11-08 21:10
c++
算法
开发语言
数据结构
蓝桥杯
青少年编程
求质数(线性筛法)
//求质数线性筛法#includeusingname
spaces
td;constintN=1e6+9;intn,cnt,primes[N];boolst[N];intmain(){ios::sync_with_stdio
想不出来_6
·
2023-11-08 17:55
算法
PTA_乙级_1001_C++
思路:使用判断语句即可,使用while进行循环,终止条件是n不等于1,然后用if-else判断奇数偶数#includeusingname
spaces
td;intmain(){intn;intcount=
王佳Gre
·
2023-11-08 16:16
PTA乙级
c++
开发语言
PTA_乙级_1002
类型定义n,for循环来遍历每一位字符然后转换成数字进行累加,再用to_string把数字和转换成字符串,再用for循环把数字和的每一位定位到pinyin字符串数组上输出#includeusingname
spaces
td
王佳Gre
·
2023-11-08 16:16
PTA乙级
c++
PTA_乙级_1006
思路:把数字的每一位都取出来,然后for循环把字符输入#include#includeusingname
spaces
td;intmain(){intn;cin>>n;intb=n/100;//计算百位数
王佳Gre
·
2023-11-08 16:36
PTA乙级
c++
c++线程池
//引入必要的头文件#include#include#include#include#include#include#include#include#includeusingname
spaces
td;/
<( ̄︶ ̄)Okay.
·
2023-11-08 16:33
多线程学习
c++
开发语言
算法
【15】c++11新特性 —>共享智能指针(指定删除器)
#include#include#include#includeusingname
spaces
td;voiddeleteIntPtr(int*p){
<( ̄︶ ̄)Okay.
·
2023-11-08 16:55
c++11新特性
c++
算法
开发语言
【无标题】C++判断一个整数是几位数
#includeusingname
spaces
td;intmain(){longlonginta,b=0;//这里的定义看情况而定.cout>a;while(a!
轻摇三千里
·
2023-11-08 14:16
c++
c++编写函数判断整数的位数
#includeusingname
spaces
td;intf(intn){intt;for(t=0;n>0;t++){n/=10;}returnt;}intmain(){intn;cout>n;cout
徘云
·
2023-11-08 14:14
c++编程运用
c++
更正av_seek_frame()后,计算音视频流起始pts的方式
#include#include#include"xdemux.h"#include"xmux.h"usingname
spaces
td;extern"C"{//引用ffmpeg头文件#include}/
guoguo0524
·
2023-11-08 13:47
音视频
贪心:Huffman树
合并果子:该题与石子合并的区别:石子合并是两两相邻才能合并,这题是任意两点合并该题的思路:每次合并最小的两个点#include#include#includeusingname
spaces
td;intmain
友纪YuKi
·
2023-11-08 12:59
算法基础
算法
c++
数据结构
贪心:排序不等式
排队打水:#include#include#includeusingname
spaces
td;constintN=100010;typedeflonglongLL;intn;intt[N];//总时间intmain
友纪YuKi
·
2023-11-08 12:51
算法基础
c++
算法
数据结构
Acwing算法基础课第二讲——数据结构
#includeusingname
spaces
td;constintN=1e5+10;intval[N],nextA[N],len,head;//向第k个元素后插入一个节点xvoidinsert(intk
XXWW9
·
2023-11-08 10:31
数据结构
算法
堆与堆排序
//二叉树的堆化#includeusingname
spaces
td;//定义堆数组intheap[100];voidMaxNode(intn){intmax=heap[n]>heap[n-1]?
不要必应
·
2023-11-08 10:51
数据结构
堆排序
heap
【牛客网】2018年北京信息科技大学第十届程序设计竞赛暨ACM选拔赛
(1usingname
spaces
td;#defin
x_mn
·
2023-11-08 09:56
牛客网
蓝桥杯双周赛2
串门#includeusingname
spaces
td;constintN=2e5+10;typedeflonglongll;llh[N],dis[N];llcnt,n;structedge{llto,
Yuzutwilight
·
2023-11-08 08:45
算法
深度优先
图论
数据结构与算法之双链表的操作
双链表的操作/*实现双链表的构建、初始化、数据添加(在指定位置添加)、数据删除(删除指定元素,并返回该元素的位置)的算法设计;*/#include#includeusingname
spaces
td;typedefstruct_DoubleLink
dearQiHao
·
2023-11-08 06:28
数据结构与算法
C++
数据结构与算法
【C++】从入门到精通第三弹——友元函数与静态类成员
1#include2usingname
spaces
td;3classCbook4{5public:6staticintprice;7};8intCbook::price=410;9intmai
洁洁!
·
2023-11-08 05:31
c++
c++
开发语言
c++求n个数中的最大值
目录题目描述输入输出代码打擂法数组排序题目描述任意输入n个整数,把它们的最大值求出来.输入输入只有一行,包括一个整数n(1usingname
spaces
td;main(){intn,x,zd=-1;cin
奋斗者2022
·
2023-11-08 05:47
c++经典例题
c++
蓝桥杯
算法
【C++】多态 ⑥ ( 函数重定义涉及的问题 - 子类覆盖父类函数名 )
执行出错的代码2、代码分析3、错误原因分析-函数重定义问题:子类覆盖父类函数名4、正确调用函数的方法一、函数重定义涉及的问题1、执行出错的代码错误代码示例:#include"iostream"usingname
spaces
td
韩曙亮
·
2023-11-08 04:18
C++
c++
开发语言
函数重写
函数重定义
多态
c语言打印菱形图案
以下是使用C语言打印菱形图案的示例代码:#includeintmain(){inti,j,rows,
spaces
;printf("请输入行数:");scanf("%d",&rows);
spaces
=rows
玥沐春风
·
2023-11-08 01:35
c语言
开发语言
word统计全部字符数。
具体如下:maximum85charactersperbulletpointincluding
spaces
这里的字符不单单包括字母和汉字,还包括标点和空格键。那么如何统计所有字符的个数呢。
买女孩儿的大火柴
·
2023-11-08 00:46
学习方法
上一页
142
143
144
145
146
147
148
149
下一页
按字母分类:
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
其他