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
2019-05-23快速排序实现
#includeusingname
spaces
td;#includeintParation(intr[],intlow,inthigh){inti=low,j=high,pivot=r[low];while
qwrdxer
·
2024-01-09 21:40
WPF_基于ScottPlot的实时曲线绘制
测试代码2.1MainWindow.csusingSystem;usingSystem.Diagnostics;usingSystem.Threading;usingSystem.Windows;name
spaceS
cottplotTest
江湖上都叫我秋博
·
2024-01-09 21:35
WPF
wpf
scottplot
实时曲线绘制
01.02
#includeusingname
spaces
td;intblood=10000;classhero{protected:stringname;inthp;intattack;public:hero()
Sujianrui
·
2024-01-09 20:21
作业
程序人生
01.03
#include#defineMaxsize6usingname
spaces
td;templateclassSqlist{T1arr[Maxsize];T1*data;intlen=0;public:Sqlist
Sujianrui
·
2024-01-09 20:21
作业
程序人生
打印柱状图
样例输入输出#include#include#includeusingname
spaces
td;charstr[80];//num存放每个字母出现次数intnum[26]={0};intmain(){intn
瓜大小王子
·
2024-01-09 19:58
01.04作业
#include#includeusingname
spaces
td;//定义顺序表的模板类templateclassSqlist{private:T*data;//顺序表的数据指针intsize;//顺序表的当前大小
JeromeSahara
·
2024-01-09 18:33
c++
12.28作业
#includeusingname
spaces
td;classPerson{private:int*age;stri
JeromeSahara
·
2024-01-09 18:03
c++
基础算法--背包问题(01背包问题、完全背包问题、多重背包问题、分组背包问题)
每件物品都有体积vi和权重wi,给我们限制条件,让我们选择在背包的容量内,物品达到权重最大01背包问题01背包问题描述:每件物品只可以使用一次我们看一下题目长什么样:#includeusingname
spaces
td
孙同学要努力
·
2024-01-09 18:30
算法基础课
算法
图论
贪心算法
利用ADO压缩Access数据库代码
#include"stdafx.h"#include#include"stdio.h"#include#includeusingname
spaces
td;/*Filepath:数据库文件路径,不包括文件名例如
蓝水海域
·
2024-01-09 18:44
C++
acwing836. 合并集合(并查集)
代码#includeusingname
spaces
td;#definedbdouble#definelllonglong#definePirpair#definefifirst#definesesecond
做一只大熊猫
·
2024-01-09 17:45
#
并查子集
图论
算法
java
AcWing 836. 合并集合(并查集)
#includeusingname
spaces
td;constintN=100010;intp[N];intfindd(intx){while(p[x]!
秘制函数
·
2024-01-09 17:44
数据结构
算法
c++
数据结构
acwing KMP算法
【数据结构】KMP算法(详解)#include#include#includeusingname
spaces
td;constintN=1e6+10;intn1,n2;chars1[N],s2[N];vectornext_val
honortech
·
2024-01-09 17:12
算法
蓝桥杯省赛无忧 竞赛常用库函数 课件8 大小写转化
01islower/isupper函数函数返回值为bool类型#includeusingname
spaces
td;intmain(){charch1='A';charch2='b';//使用islower
暗托涅瓦
·
2024-01-09 16:10
蓝桥杯省赛无忧
蓝桥杯
职场和发展
c++
c语言
蓝桥杯省赛无忧 竞赛库常用函数 课件6 最值查找
page=1&first_category_id=1&problem_id=497输入780925674889910输出991071.29#includeusingname
spaces
td;co
暗托涅瓦
·
2024-01-09 16:39
蓝桥杯省赛无忧
蓝桥杯
职场和发展
c++
c语言
蓝桥杯省赛无忧 竞赛常用库函数 课件7 二分查找
01二分查找的前提02binary_search函数#includeusingname
spaces
td;intmain(){vectornumbers={1,3,5,7,9};inttarget=5;/
暗托涅瓦
·
2024-01-09 16:39
蓝桥杯省赛无忧
蓝桥杯
职场和发展
c++
c语言
蓝桥杯省赛无忧 竞赛常用库函数 课件5 排序
01sort简介02sort的用法sort(起始地址,结束地址的下一位,比较函数);默认用小于号#includeusingname
spaces
td;intmain(){inta[1000];intn;/
暗托涅瓦
·
2024-01-09 16:33
蓝桥杯省赛无忧
蓝桥杯
算法
职场和发展
c++
c语言
大数的乘法
样例输入Copy123456789123456789样例输出Copy15241578750190521代码实现:#pragmaGCCoptimize(2)#includeusingname
spaces
td
CharlesC++
·
2024-01-09 16:19
算法
c++
string 数组 转 char* []
#includeusingname
spaces
td;intmain(){stringstrArray[]={"Hello","World"};//定义字符串数组intsize=sizeof(strArray
sun007700
·
2024-01-09 15:57
c++
算法
开发语言
Objective-C中使用STL标准库Queue队列
1.修改.m文件为mm2.导入queue头#include3.使用:#import#include#includeusingname
spaces
td;intmain(intargc,constchar*
林鸿群
·
2024-01-09 14:29
Objective-C
objective-c
c++
算法
LeetCode 构建树(C++)
注意:当节点的值为0时,会发生误判(0和NULL的值相等)#include#include#includeusingname
spaces
td;typedefstructTreeNode*Tree;//Leetcode
crescentgear
·
2024-01-09 14:28
leetcode
c++
算法
C++ sort()从小到大排序和从大到小排序
sort()默认排序:从小到大#include#include#includeusingname
spaces
td;boolcomp(int&a,int&b){returnatemp;temp.push_back
crescentgear
·
2024-01-09 14:58
C/C++
c++
C++PrimerPlus(第六版)第十章答案
第1题:main.cpp#include#include"stock.h"usingname
spaces
td;intmain(){BankAccounta1=BankAccount("a1","fad@
crescentgear
·
2024-01-09 14:57
C/C++
c++
渐开线函数工具
#include#include#include#include#include#definePI3.1415926usingname
spaces
td;doubleinv(doublea){returntan
熊猫Devin
·
2024-01-09 13:07
C++每日一练(14):对称矩阵的判定
输入第一行输入一个正整数N(Nusingname
spaces
td;inta[100][100];intmain(){intN;cin>>N;for(inti=1;i>a[i][j];}}for(inti
猿神派蒙
·
2024-01-09 12:52
C++每日一练
c++
开发语言
C++每日一练
第四站:指针的进阶-(二级指针,函数指针)
类型的指针函数指针定义:调用:两种方式:(*指针名)(参数地址)或者指针名(参数地址)应用:二级指针二级指针也是一个普通的指针变量,只是它里面保存的值是另外一个一级指针的地址#includeusingname
spaces
t
坑真多
·
2024-01-09 12:19
c++
visual
studio
c语言
C++循环加强小练习
练习1:根据用户的要求,输出对应的行数和列数并打印*#includeusingname
spaces
td;/*根据用户的要求,输出对应的行数和*数量*/intmain(void){introw;intcol
坑真多
·
2024-01-09 12:48
c++
visual
studio
二维数组小练习
从文件读取整数数据判断峰值#include#include#include//使用文件函数需要包含的头文件usingname
spaces
td;#defineN128//定义一个函数获取他是否为峰值boolisPeek
坑真多
·
2024-01-09 12:48
c++
visual
studio
1.6PTA集练7-5~7-24、7-1、7-2,堆的操作,部落冲突(二分查找)
7-5大師と仙人との奇遇分数20#include#includeusingname
spaces
td;intn;longlongans=0,num;priority_queue,greater>q;//记录之前买的
CQU_JIAKE
·
2024-01-09 12:47
大虫复习
算法
算法
c++
数据结构
1.1map
map需要的头文件#include//使用unordered_map需要的头文件#include//使用set需要的头文件#include//使用unordered_set需要的头文件usingname
spaces
td
CQU_JIAKE
·
2024-01-09 12:17
c++
开发语言
codeforces - 1363A 思维题
Input输入第一行一个数字t(t#includeusingname
spaces
td;intmain(){intT;cin>>T;while(T--){intN,n,j=0,o=0,c=0;cin>>N
永夜天
·
2024-01-09 11:28
codeforces题集
蓝桥杯
p2p
职场和发展
c++
Linux命令下操作db2数据库
2.db2信息查询命令db2listtables#列出所有表名db2describetable表名#显示表字段db2listdbdirectory#列出该用户创建的所有数据库名db2listtable
spaces
showdetail
c_gentle
·
2024-01-09 11:28
Codeforces好题训练1
此处是CF题解A-KuroniandtheGifts题意:两个长度为n的序列,每个数字各不相同,求一种排列方式,使ai+bi的值不同#includeusingname
spaces
td;constintN
Alaso_shuang
·
2024-01-09 11:25
学习笔记
CF题解
c++
C++类模板:1.类模板语法 2.类模板和函数模板的区别 3.类模板中成员函数创建时机 4.类模板对象做函数参数的三种方法 5.两种方法继承类模板 6.模板类构造函数,普通函数的类外实现
1.3示例#include#includeusingname
spaces
td;templateclassPerson{public:Person(N
computer_vision_chen
·
2024-01-09 10:05
C++笔记
c++
算法
开发语言
【无标题】
#include#include#include#include#include#includeusingname
spaces
td;//最小生成树-Prim算法intprimMST(vector>&graph
我也要当昏君
·
2024-01-09 10:54
算法
寒假刷题记录,第一天(重刷题目)
PTA甲级:1003Emergency经典迪杰斯特拉算法#include#includeusingname
spaces
td;constintN=510,INF=0x3f3f3f3f;intdist[N]
xp_xht123
·
2024-01-09 09:23
算法
c++
数据结构
寒假刷题记录,第二天
PTA甲级1006SignInandSignOut经典的排序算法#include#include#includeusingname
spaces
td;intn;structnode{stringid;intti
xp_xht123
·
2024-01-09 09:18
算法
c++学习:list链表模板类实战(学生管理系统)
要求:编写一个学生结构体要求面向对象要求用到链表连接每个学生代码#include#includeusingname
spaces
td;classStudent{friendistream&operator
码农小白
·
2024-01-09 09:09
c++
c++
学习
list
背包问题——贪心算法
#includeusingname
spaces
td;//按照单位重量的价值量大小降序排列voidSort(intn,float*w,float*v){inti,j;floattemp1,temp2;for
彼岸无生花
·
2024-01-09 09:08
贪心算法
算法
c++
【算法笔记】贪心算法——01背包问题
贪心算法——01背包问题#includeusingname
spaces
td;intmain(){intn;//物品数floatc;//背包容量floatres=0;cin>>n>>c;floatv[n]
G11176593
·
2024-01-09 09:01
算法
贪心算法
c++
【MediaFoundation】OpenCV VideoCapture 读取音频源码
#include#include#include#includeusingnamespacecv;usingname
spaces
td;intm
Dovake
·
2024-01-09 08:39
Audio
opencv
音视频
人工智能
数据结构-怀化学院期末题(1321)
第一行为叶子结点的数目n(1#include#include#include#include#include#include#include#include#include#includeusingname
spaces
td
小符不秃头
·
2024-01-09 07:13
数据结构
算法
C++ goto语句
语法:goto标记;解释:如果标记的名称存在,执行到goto语句时,会跳转到标记的位置#includeusingname
spaces
td;intmain(){cout<<"1,xxxx"<
qq_52788787
·
2024-01-09 07:37
c++
算法
开发语言
牛客 最大序列和 DP
分解思想:dp[i]表示以a[i]结尾的最大连续序列和最大序列和#includeusingname
spaces
td;#definelllonglongconstintINF=1e10+10;intmain
QingQingDE23
·
2024-01-09 06:24
算法
数据结构
c++ string的length()
string的length()返回值是无符号数起因:在写入门kmp题时,两个string匹配的时候使用iusingname
spaces
td;constintmaxn=1e6+5;intnxt[maxn]
爱喝牛奶的男孩
·
2024-01-09 06:22
c++
KY23 最小花费 DP
DP,比较恼的是题中没说明a、b的范围,不敢轻易用双循环添加链接描述#includeusingname
spaces
td;#definelllonglongconstintINF=1e9+10;intl1
QingQingDE23
·
2024-01-09 06:44
算法
如何在 Mac 上安装 GCC?
Homebrew2)brewinstallgcc,如下图:测试安装是否成功,方法如下:1)执行gcc-v,如下图:2)进入自己的目录写一个helloworld.cpp,内容如下:#includeusingname
spaces
td
行走的码农霖悦
·
2024-01-09 04:06
c++
Qt Creator C++ 类说明
Name
spaces
命名空间Aggregation聚合Containssupportforbundlingrelatedcomponents,sothateachcomponentexposesthepropertiesandbehavioroftheothercomponentstotheoutside
新潮看世界
·
2024-01-09 04:44
最值查找max,min及类似函数用法与说明
传入两个值#include#includeusingname
spaces
td;intmain()
Pigwantofly
·
2024-01-09 04:54
C
++语法知识
c++
算法
开发语言
数论模板笔记打卡
while(r){if(r&1)res=res*l%N;l=l*l%N;r>>=1;}returnres;}2、求每个数是多少个其他的数的约数for(inti=1;i#includeusingname
spaces
td
atm7758258
·
2024-01-09 04:20
数论
笔记
函数——系统函数2(c++)
:(注:a为变量名)名称用法用处sqrtsqrt(a)算出变量a的平方根(注:使用sqrt函数时,需要用到头文件#include(数学运算的头文件))#include#includeusingname
spaces
td
mmz1207
·
2024-01-09 01:13
c++
算法
开发语言
上一页
81
82
83
84
85
86
87
88
下一页
按字母分类:
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
其他