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++每日一练(11):对称矩阵的判定
输入第一行输入一个正整数N(Nusingname
spaces
td;inta[100][100];intmain(){intN;cin>>N;for(inti=1;i>a[i][j];}}for(inti
猿神派蒙
·
2024-01-06 03:40
c++
开发语言
C++自制小游戏《屠夫躲猫猫》
大家好,我是派蒙,我写了一个《屠夫躲猫猫》的游戏,下面是源代码:#include#include#include#includeusingname
spaces
td;stringID[1001];stringName
猿神派蒙
·
2024-01-06 03:38
c++
卡码网语言基础课 | 镂空三角形
输入描述每行包含一个字符和一个整数n(0usingname
spaces
td;intmain(){charch;intn;while(cin>>ch>>n){if(ch=='@')brea
cenwill
·
2024-01-06 03:59
C++基础
卡码网语言基础课
c++
卡码网语言基础课 | A+B问题6
输入示例241119输出示例630#includeusingname
spaces
td;intmain(){inta,b;while(cin>>a>>b){cout<
cenwill
·
2024-01-06 03:29
C++基础
卡码网语言基础课
c++
郑州大学算法设计与分析实验2
判断题1#includeusingname
spaces
td;constintN=50;intf[N],n;intmain(){//freopen("1.in","r",stdin);ios::sync_with_stdio
wa的一声哭了
·
2024-01-06 02:08
算法
算法
python
django
pygame
java
tomcat
mybatis
c++的一些输出cout,printf,fprintf,snprintf
C++中推荐cout输出,printf,fprintf,snprintf是c的标准库函数,c++继承了他1.coutcout使用流插入运算符“usingname
spaces
td;intmain(){stringmyString
老男孩li
·
2024-01-06 02:37
C++
c++
算法
数据结构
InnoDB引擎-架构
AdaptiveHashIndex:自适应hash索引LogBuffer:日志缓冲区架构-磁盘结构SystemTablespace:系统表空间File-Per-TableTablespace:独立表空间间GeneralTable
spaces
长矛老师我的神
·
2024-01-06 02:26
架构
mysql
数据库
#5. 伐木工小明
题目描述有N棵树,第i棵树的高度为h[i]米(1usingname
spaces
td;intn,m,h[1001000],l,r,mid;longlongres;longlongf(intx){}//求解砍伐高度为
停暮_星月志
·
2024-01-05 23:04
算法
数据结构
全排列结构范例_超实用
#includeusingname
spaces
td;intn,a[110];voidf(intx){//不仅作为一个参数,代表了当前的递归层数if(x>n){//x的值超过n的时候,说明已经递归了n次了
停暮_星月志
·
2024-01-05 23:03
华迈初二-搜索与回溯
算法
c++
CSP CCF 201412-2 Z字形扫描 C++满分题解
将矩阵分成左上和右下两个部分来看2.每一个部分都是按着斜线输出3.同一根斜线上坐标的x+y相同,不同线上坐标的x+y为公差为1的等差数列4.左边线上坐标的x+y依次变大,右边依次变小#includeusingname
spaces
td
秦不知所起♡
·
2024-01-05 23:00
csp的刷题之路
c++
算法
数据结构
C++函数耗时计算
ms,仅精确到整数部分)3time方法(单位为s,可精确到小数点后三位)4python函数耗时,单位s1chrono方法(单位为s,可精确到小数点后七位)#include//计算时间usingname
spaces
td
Dymc
·
2024-01-05 22:01
C++
c++
开发语言
DES源码(基于C语言)
//#include#include#include#include"des.h"usingname
spaces
td;//16-wheelsecretkeystructuralbodystructSecret_Key
satadriver
·
2024-01-05 21:41
数据结构和算法
c语言
算法
[C++] Boost智能指针——boost::shared_ptr(使用及原理分析)
通过下面这个例子先了解下shared_ptr的基本用法:1#include2#include3#include45usingname
spaces
td;67classBook8{9private:10strin
dxmcu
·
2024-01-05 21:35
boost
ABC206(A-C)
A#includeusingname
spaces
td;intmain(){intnum[3];cin>>num[0]>>num[1]>>num[2];sort(num,num+3);cout#definelllonglongusingname
spaces
td
pboaths
·
2024-01-05 19:03
c语言
算法
开发语言
《现代C++语言核心特性解析》笔记(三)
“太空飞船”(
spaces
hip)运算符C++20标准新引入了一个名为“太空飞船”(
spaces
hip)的运算符,它是一个三向比较运算符。
川峰
·
2024-01-05 19:54
C++学习笔记
C++
JVM内存模型及常见问题处理
1.1、JavaHeap溢出:一般的异常信息:java.lang.OutOfMemoryError:Javaheap
spaces
s。java堆用于存储对象实例,我们只要不断的创建对象,并且保证
光依旧
·
2024-01-05 18:49
JAVA
jvm
C++读取文件到string中
ifstrean读取文件#includeusingname
spaces
td;intmain(){ifstreammyfile("D:\\VScodeC++\\file\\hello.txt",ios::
无火的残烬
·
2024-01-05 18:29
C++
file
c++
C++去除数字和符号前缀
需要提前建立好这两个文件,可以看到代码中的两个文件路径,修改为自己的代码:/*Author:wiklDescription:删除文本中数字开头和数字加‘.’开头的部分*/#includeusingname
spaces
td
无火的残烬
·
2024-01-05 18:29
数据结构
C++
c++
字符串
C++ 二叉树求叶子结点数及输出叶子结点的路径
话不多说,直接看代码1.头文件及二叉树结点定义#includeusingname
spaces
td;typedefstructBitnode{chardata;structBitnode*lchild,*
无火的残烬
·
2024-01-05 17:58
C++
二叉树
数据结构
链表
算法
C++入门【19-C++ Null 指针】
请看下面的程序:实例#includeusingname
spaces
td;intmain(){int*ptr=NULL;cout<<"ptr的值是"<
心灵行者
·
2024-01-05 17:16
C++入门
c++
开发语言
C++入门【21-C++ 指针 vs 数组】
请看下面的程序:实例#includeusingname
spaces
td;constintMAX=3;intmain(){intvar[MAX]={10,100,200};int*ptr;//指针中的数组地址
心灵行者
·
2024-01-05 17:16
C++入门
c++
开发语言
5307. 小苹果
每一次从第一个苹果开始拿,隔两个苹果拿一个苹果,每天拿一次,一次拿一些苹果,问最少需要多少天,把所有苹果拿完,哪一天可以拿到编号为n的苹果,n最大可以取到1e9输入8输出55AC代码#includeusingname
spaces
td
三冬四夏会不会有点漫长
·
2024-01-05 16:03
2024寒假每日一题
算法
【Cpp】第十一章-继承
#include#includeusingname
spaces
td;classPerson{public://如果我们设计一个类考虑到它会被继承那么最好用protected成员取
MisakiFx
·
2024-01-05 16:56
C++
Cpp
继承
虚继承
虚基表
C#:如何产生一个临时文件
usingSystem;usingSystem.IO;name
spaceS
tudy{internalclassProgram{staticvo
吉普赛的歌
·
2024-01-05 16:50
C#
c#
开发语言
18 C++11 类初始化, explicit,构造函数初始化列表,const,liline,mutable,this指针,static,=defaule,=delete,拷贝构造函数,赋值拷贝,继承
一类的初始化类的初始化有如下的模式Teacher5tea1;//无参数构造函数Teacher5tea7{};//无参数构造函数coutusingname
spaces
td;classTeacher5{public
hunandede
·
2024-01-05 14:03
c++
C++ 学习系列 -- using关键字
+11中新引入了关键字using二using关键字的用处1.usingnamespace与usingnamespacemember#include#includeintmain(){usingname
spaces
td
在河之洲木水
·
2024-01-05 13:53
c++
学习
开发语言
搜索(洛谷)
总部填涂颜色海战健康的荷斯坦奶牛HealthyHolsteins打开所有的灯离开中山路马的遍历好奇怪的游戏奇怪的电梯路障上学路线回家血色先锋队全排列问题代码1:dfs注意恢复现场,参看排列数字#includeusingname
spaces
td
会笑的小熊
·
2024-01-05 13:31
洛谷
深度优先
算法
图论
寒假训练 第一场
查询即可代码块:`#includeusingname
spaces
td;constintN=1e6+10;intcir[10]={1,0,0,0,1,0,1,0,2,1};intf[N];intmain(
Xiaoling_ml
·
2024-01-05 13:30
算法
C++面向对象核心-继承
已存在的类被称为“基类”或者“父类”新建立的类被称为“派生类”或者“子类”对象间没有继承关系#include usingname
spaces
td;// 基类classFather{private:string
满山的猴子我的腚最红
·
2024-01-05 12:43
C++
c++
开发语言
C/C++: 将两个单链表合并为一个单链表并排序
#includeusingname
spaces
td;typedefstructlst{intdata;structlst*next;}LNode;LNode*Init()//创建单链表{intx=0;LNode
朱小呆QAQ
·
2024-01-05 12:41
c语言
c++
算法
C/C++: 希尔排序
/****Althor:HackerHao*Create:2023.12.19**/#includeusingname
spaces
td;#defineMAXSIZE200constintN=1e5+10
朱小呆QAQ
·
2024-01-05 12:11
c++
c语言
算法
C/C++:堆排序
/****Althor:HackerHao*Create:2023.12.10**/#includeusingname
spaces
td;#defineMAXSIZE200constintN=1e5+10
朱小呆QAQ
·
2024-01-05 12:11
c++
c语言
算法
面向对象基础-析构函数-this-static-const
~类名构造函数可以重载析构函数没有参数,不能重载用于创建对象时并初始化用于销毁对象时释放资源“有构造函数返回值”没有返回值3.4.3的代码优化为:#include #include usingname
spaces
td
满山的猴子我的腚最红
·
2024-01-05 12:38
C++
c++
算法
开发语言
linux
C++实战项目
实战项目通讯录管理系统1、运行结果截图2、运行源码//-封装函数显示界面如voidshowMenu()//-在main函数中调用封装好的函数#include#include#defineMAX1000usingname
spaces
td
乐天_bubble
·
2024-01-05 11:48
#
C++
c++
洛谷p1829(莫比乌斯反演)
思路:代码:#define_CRT_SECURE_NO_WARNINGS#include#include#include#includeusingname
spaces
td;constdoubleeps=
yusen_123
·
2024-01-05 11:51
数论
c++
算法
数据结构
C++三元运算符作为左值和右值的例子
右值通过右值看一下基本语法:#includeusingname
spaces
td;intmain(){inta=10;intb=20;intc=(a>b?
薛钦亮
·
2024-01-05 10:14
c++
开发语言
Leetcode ->206 反转链表
题目算法思路及代码实现#includeusingname
spaces
td;structListNode{intval;//当前节点的值ListNode*next;
可即
·
2024-01-05 09:33
leetcode算法题库
leetcode
链表
算法
c++实训 数组之犯二程度 与队列变换
#includeusingname
spaces
td;/
YanXi_Basketball
·
2024-01-05 08:26
头歌c++程序设计
c++
c++指针实训
#includeusingname
spaces
td;#define_CRT_SECURE_NO_WAR
YanXi_Basketball
·
2024-01-05 08:26
头歌c++程序设计
c++
C++ 头歌实训 面向对象 - STL 的应用
第一关在结构体中要重载#include#include#includeusingname
spaces
td;/*********Begin*********///自定义的类和者其他内容structstudent
YanXi_Basketball
·
2024-01-05 08:26
头歌c++程序设计
c++
c++ 头歌实训 第四关 日历打印
首先把代码放在前//包含两种I/O库,可以使用任一种输入输出方式#include#includeusingname
spaces
td;//函数printMonth:按要求的格式打印某年某月的日历//参数:
YanXi_Basketball
·
2024-01-05 08:55
头歌c++程序设计
c++
c++实训 选猴子当大王
首先将代码放在前边#includeusingname
spaces
td;//函数king:猴子选大王//参数:a-猴子数组n-1个猴子分别占据下标为~n-1的位置,n-数组长度//返回值:新猴王的下标序号
YanXi_Basketball
·
2024-01-05 08:55
头歌c++程序设计
c++
构建二叉树
二叉树深度:#include#include#include#includeusingname
spaces
td;structTreeNode{intval;TreeNode*left;TreeNode*
丘小羽
·
2024-01-05 07:36
c++
算法
数据结构
小细节处理
以下是简化版#include#include#include#include#include#includeusingname
spaces
td;boolmap(inta,intb){returna>b;
丘小羽
·
2024-01-05 07:36
前端
javascript
算法
常见参数校验正则表达式
packagecom.yy;importjava.util.regex.Pattern;//PressShifttwicetoopentheSearchEverywheredialogandtype`showwhite
spaces
yy1209357299
·
2024-01-05 06:36
springBoot
正则表达式
linux使用jvm配置启动jar脚本
$pid1"];thenecho"notrunning"elsekill-9${pid1}echo"shutdown"-${pid1}fiJAVA_OPTS="-Xms2g-Xmx2g-XX:Meta
spaceS
ize
yy1209357299
·
2024-01-05 06:36
Linux
运维
linux
jvm
jar
运维
服务器
【C语言数据结构】折半查找排序(有注释)
函数接口定义:voidBInsertSort(SqList&L);裁判测试程序样例:#include#defineMAXSIZE1000usingname
spaces
td;typedefstruct{intkey
木鳶戾天
·
2024-01-05 04:29
C语言数据结构
数据结构
c语言
算法
洛谷P3147题目详解(P3146加强版)
usingname
spaces
td;intn,ans;intf[N][M];intmain(){scanf("%d",&n);for(inti=1;i<=n;++i){intin;scanf("%d",
Colinnian
·
2024-01-05 04:57
算法
c++
数据结构
C++作业
利用模板类完成顺序表#includeusingname
spaces
td;#defineMAX20templateclassSql{private:T*head=NULL;intlen=0;public:
闫雅南
·
2024-01-05 04:15
c++
开发语言
C++练习作业:异常处理
尝试将string类型的字符串转换成C风格的字符串(可以赋值给字符数组),并访问,判断越界情况#include#includeusingname
spaces
td;voidfun(char*str,inti
闫雅南
·
2024-01-05 04:14
c++
算法
开发语言
上一页
86
87
88
89
90
91
92
93
下一页
按字母分类:
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
其他