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++指针运算符重载-智能指针手动实现(某马)
#define_CRT_SECURE_NO_WARNINGS#includeusingname
spaces
td;classPerson{public:Person(intage){coutm_Age=age
无涯之涯
·
2023-12-24 21:39
每日一题第一期答案
#include"iostream"#include"cstdio"#include"cmath"usingname
spaces
td;intn,a[10005],b[10005],ans1,ans2;boolcheck1
蒟蒻武天骏……
·
2023-12-24 20:56
每日一题答案
c++
C语言中的基本单位是什么?——C#语言的基本构成元素
命名空间(Name
spaces
):命名空间是C#中的一个重要概念,用于组织和管理代码。它提供了一种将相关的类、结构、接口和其他类型组织在一起的方法。通过使用命名空间,可以避免名称冲突,
时代在召唤吗
·
2023-12-24 20:52
c语言
c#
java
C#
PTA 快速排序
12242445455390代码长度限制16KB时间限制400ms内存限制64MB代码分享:#include#includeusingname
spaces
td;intmain(){intn;cin>>n
鑫鑫向栄
·
2023-12-24 18:58
PTA
数据结构
c++
c语言
算法
谁是第一名
输入格式:第一行输入一个正整数N(N#includeusingname
spaces
td;//定义结构体,用结构体来存放分数和对应的人名structstudent{intdata;stringch;}s[
鑫鑫向栄
·
2023-12-24 18:28
PTA
算法
数据结构
c++
开发语言
c++输入一个字符串,分别用普通的ASCII编码(每个字符8个字节)和哈夫曼编码,输出前、后长度,以及压缩比
//#include#include#include#include#includeusingname
spaces
td;intmain(){priority_queue,greater>q;strings
可以输出hello了
·
2023-12-24 17:25
c++
算法
c语言
c++实验多态程序设计
#includeusingname
spaces
td;classB{public:virtualvoidf1(doublex){coutf1(1.23);pd->f1(1.23);pb->f2(2.23)
可以输出hello了
·
2023-12-24 17:55
算法
c++
C++将一组数据排序后去重
输入:一组数据输出:排序去重后的一组数据#define_CRT_SECURE_NO_WARNINGS1#include#includeusingname
spaces
td;intmain(){inta[100
哈密瓜刨冰
·
2023-12-24 16:51
算法
数据结构
c++
MIT 6.S081学习笔记(第九章)
QuestionrequirementsThemmapandmunmapsystemcallsallowUNIXprogramstoexertdetailedcontrolovertheiraddress
spaces
.Theyca
瑜陀
·
2023-12-24 15:44
OS
学习
笔记
xv6
OS
VS项目出现未定义标识符to_string
方法1:可以直接包含usingname
spaces
td;方法2(推荐):使用usingstd::string;
liquor717
·
2023-12-24 14:49
c++
开发语言
std::to_string
项目中遇到一个要将int转成std::string的使用,看到前面同事是通过stringstream实现的,感觉有点麻烦,实现方式如下:#include#include#includeusingname
spaces
td
mayue_csdn
·
2023-12-24 14:19
C++
to_string
string
字符串
C++_运算符重载
目录1、运算符重载的定义2、实现‘>=usingname
spaces
td;classDate//日期类{public:Date(intyear,intmonth,intday)//构造函数初始化{_year
efls111
·
2023-12-24 14:17
C++
c++
开发语言
第十五蓝桥杯模拟赛(第二场) 题解(c++)
~一、题解:第一题.题目:思路:数学问题:36x30÷10=108;108第二题:题目:思路:每次循环都对1000求余,防止爆int.或者用快速幂也可以//2.608#includeusingname
spaces
td
JIAN LAI
·
2023-12-24 12:30
蓝桥杯
蓝桥杯
算法
c++
C++中的拷贝构造函数
因为被复制的对象有可能是常对象#pragmawarning(disable:4996)#include#includeusingname
spaces
td;classPerson{cha
大鳄鱼小鳄鱼
·
2023-12-24 12:08
题目基础算法蓝桥真题
代码其中2的20次方可以用(1#includeusingname
spaces
td;intx;boolf(intx){while(x){inty=x%10;if(y==2||y==0||y==1||y==
涯边上的蒲公英
·
2023-12-24 09:46
算法
数组名的用途c++
一:用数组名获取数组占用内存空间的大小:用sizeof运算符计算内存(上一篇有介绍siaeof)令该数组名称为arr先看代码:#includeusingname
spaces
t
涯边上的蒲公英
·
2023-12-24 09:15
c++
算法
开发语言
牛客小白月赛36
include#include#include#include#include#definerep(i,a,b)for(inti=a;i=b;i--)#definemkmake_pairusingname
spaces
td
reisen.inaba
·
2023-12-24 08:18
题解
牛客
牛客小白月赛21
AC-Code#includeusingname
spaces
td;intmain(){coutusingname
spaces
td;intmain(){doublex1,y1,x2,y2,x3,y3;while
nirvana · rebirth
·
2023-12-24 08:15
ACM
牛客小白月赛
牛客小白月赛31【解题报告】
代码实现#includeusingname
spaces
td;type
The___Flash
·
2023-12-24 08:15
7-1 最大值和最小值 (10分)__C++
输入格式一个正整数N接下来连续输入N个正整数输出格式输入整数中的最大值减去最小值的结果输入样例:5481012输出样例:9代码#includeusingname
spaces
td;intmain(){longintn
蘼子
·
2023-12-24 07:02
c++题库
c++
平方矩阵()
平方矩阵1平方矩阵2曼哈顿距离#include#include#include#includeusingname
spaces
td;constintN=110;intn;inta[N][N];intmain
_NeW__
·
2023-12-24 07:43
Python
矩阵
算法
C++11并发与多线程
进程就是运行起来的可执行程序线程:进程中的实际运作单位2.线程创建线程#include#include//①usingname
spaces
td;//②voidhello(){//③cout头文件。
qq_43784519
·
2023-12-24 05:41
学习笔记
c++
算法
开发语言
【OJ题录】迭代法求根(C++实现)
输入格式X输出格式X的平方根输入样例4输出样例2.000代码#include#include#includeusingname
spaces
td;intmain(){inta;doublex=1.0,x1
EddyCliff
·
2023-12-24 03:35
OJ题录
c++
算法
开发语言
科技
程序人生
OJ题录
【OJ题录】成绩(C++实现)
N#includeusingname
spaces
td;#defineN100///@brief学生类structStudent{stringid;stringname;intg
EddyCliff
·
2023-12-24 03:35
OJ题录
c++
算法
开发语言
科技
程序人生
OJ题录
【Py/Java/C++三种语言OD2023C卷真题】20天拿下华为OD笔试之【贪心】2023C-环中最长子串【欧弟算法】全网注释最详细分类最全的华为OD真题题解
输入描述输入由一个小写字母组成的字符串s1#includeusingname
spaces
td;i
闭着眼睛学算法
·
2023-12-24 03:57
最新华为OD真题
#
贪心
#
模拟
java
c++
华为od
测试——VS断点调试
调试的c程序:#define_CRT_SECURE_NO_WARNINGS#include#include#includeusingname
spaces
td;intmain(void){floatr=0
恣睢s
·
2023-12-24 03:49
测试
c语言
算法基础之01背包问题
01背包问题核心思想:二维数组普通写法:#include#include#includeusingname
spaces
td;constintN=1010;intf[N][N];//存i个物品容量不超过j
阳光男孩01
·
2023-12-24 00:10
算法
c++
数据结构
图论
开发语言
1012 数字分类 (20)(20 分)
#include#include#includeusingname
spaces
td;intn,x;vectora[6];intmain(){scanf("%d",&n);while(n--){scanf
DaiMorph
·
2023-12-23 23:24
P1025 [NOIP2001 提高组] 数的划分
输入格式n,kn,k(6usingname
spaces
td;intn,k,f[201][7];//f[k][x]k分成x份={f[k-1][x-1],f[k-x][x]}
一只喜欢玩MC蒟蒻
·
2023-12-23 23:30
c++
算法
ybt1329:【例8.2】细胞
#include#include#include#includeusingname
spaces
td;boolvis[1010][1010];chara[1010][1010];intdx[]={1,0,
iCrEjfuhhChXjVz
·
2023-12-23 23:19
C++
新心复习
【例8.2】细胞
广搜之前没怎么弄明白重新刷刷,好像还是挺简单的代码#includeusingname
spaces
td;intdx[4]={1,-1,0,0};intdy[4]={0,0,1,-1};intn,m,ans
c_yy_
·
2023-12-23 23:18
广搜
信息学奥赛一本通 1307:【例1.3】高精度乘法
【输入样例】363【输出样例】108代码:#includeusingname
spaces
td;inta[205],b[205],ans
菡LOVE蕾
·
2023-12-23 23:47
高精度算法
算法
【刷题·栈】20. 有效的括号
文章目录代码结果代码/**@lcapp=leetcode.cnid=20lang=cpp**[20]有效的括号*/#include#includeusingname
spaces
td;//@lccode=
吴天德少侠
·
2023-12-23 22:15
leetcode
c++
算法
c++实现数的全排列
#includeusingname
spaces
td;#includeconstintmaxn=11;//最多排11位vectorans(maxn),used(maxn,0);voidpermu(intindex
吴天德少侠
·
2023-12-23 22:14
c++数据结构
c++
cpp的map.find(key)函数
#include#includeusingname
spaces
td;intmain(){/*map.find(key)返回键为key的映射的迭代器*/mapmp;mp['m']=20;mp['r']=30
吴天德少侠
·
2023-12-23 22:14
c++数据结构
cpp优先队列
#include#include#includeusingname
spaces
td;structfruit{stringname;intprice;friendbooloperatorf2.price;
吴天德少侠
·
2023-12-23 22:14
c++数据结构
判断message是不是在newspaper中
如果是返回ture,否则返回falsecpp/c++实现#include#include#includeusingname
spaces
td;boolcanCompose(stringnewspaper,
吴天德少侠
·
2023-12-23 22:14
c++数据结构
哈希算法
算法
c/c++贪心算法求月饼利润
输入几种月饼n,需求量D第2行:输入n种月饼各自的存量第3行:输入n种月饼的总售价例如:320181510757245输出:最大收益例如:94.50代码:#include#includeusingname
spaces
td
吴天德少侠
·
2023-12-23 22:43
c++数据结构
cpp打印map的键和值
#include#includeusingname
spaces
td;intmain(){mapmp;mp['m']=20;mp['r']=30;mp['a']=40;for(map::iteratorit
吴天德少侠
·
2023-12-23 22:43
c++数据结构
c++使用递归实现汉诺塔
对着书,然后实现出来的,感觉还挺有意思代码#include#includeusingname
spaces
td;voidmove(conststd::string&src,constintnumber,conststd
吴天德少侠
·
2023-12-23 22:10
c++数据结构
c++
java
开发语言
函数(C++)
语法:返回值类型函数名(参数=默认值){函数体}#includeusingname
spaces
td;intadd(intx,inty,intz=100){
一条飞的鱼儿
·
2023-12-23 22:28
c++
算法
开发语言
内联函数(C++)
1.8内联函数1.8内联函数在函数声明或定义时,将inline关键字加在函数返回类型前面就是内联函数#includeusingname
spaces
td;inlineintadd(intx,inty){/
一条飞的鱼儿
·
2023-12-23 22:28
c++
开发语言
算法基础之快速幂
快速幂核心思想:logk的复杂度求出akmodp将k拆成若干个2的n之和(二进制)#include#includeusingname
spaces
td;typedeflonglongLL;LLqmi(inta
阳光男孩01
·
2023-12-23 22:20
算法
数据结构
c++
散列表
图论
图像处理-HSV和RGB相互转换
代码:#include#include#include#includeusingname
spaces
td;//RGB->HSVclassHSV//HSV类{public:doubleH,S,V;HSV(
我套你猴子喂
·
2023-12-23 22:20
图像处理
c++
剑指offer题解合集——Week1day4
AC代码classSolution{public:stringreplace
Spaces
(string&str){stringres
Azxcc0
·
2023-12-23 21:58
剑指offer
算法
leetcode
计时器3.0
#include#includeusingname
spaces
td;#defineKEY_DOWN(VK_NONAME)((GetAsyncKeyState(VK_NONAME)&0x8000)?
指引拟态没
·
2023-12-23 21:47
c++
算法
开发语言
游戏
记录一次生产jvm调优
参数配置几个必须知道的参数含义说下我们生产配置,服务四个节点,单节点分配16g内存-Xms16g初始化堆大小-Xmx16g最大堆内存-Xmn6gm年轻代内存大小-Xss256k每个线程的初始化内存-XX:Meta
spaceS
ize
Charon笔记
·
2023-12-23 20:32
kubernetes(k8s)部署微服务并通过ingress实现外部访问
1.部署微服务1.1创建k8s命名空间kubectlcreatename
spaces
imple-microservice1.2资源脚本(ruoyi-server.yaml)apiVersion:apps
程序猿(攻城狮)
·
2023-12-23 20:19
容器技术
k8s
ingress
acwing算法提高之动态规划--树形DP
C++代码如下,#include#include#includeusingname
spaces
td;intn;unordered_m
YMWM_
·
2023-12-23 19:15
Acwing
C++学习
算法
动态规划
acwing算法提高之动态规划--区间DP
区间DP的状态的遍历模板为,for(intlen=1;len#includeusingname
spaces
td;cons
YMWM_
·
2023-12-23 19:45
Acwing
C++学习
算法
动态规划
上一页
98
99
100
101
102
103
104
105
下一页
按字母分类:
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
其他