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
踩坑Xcode 10之New Build System
在Xcode菜单栏选择File--Work
spaceS
etting就会出现如下的界面遇到的问题除了这个问题之外,笔者
贝勒老爷
·
2024-01-04 06:16
《Linux C编程实战》笔记:进程操作之ID,优先级
示例程序1#include#include#include#include#include#include#include#include#include#include#includeusingname
spaces
td
ouliten
·
2024-01-04 06:16
linux
c语言
笔记
并行版的std::accumulate
代码来自C++并发编程实战#include#include#include#include#include#include//标准库里的accumulate在这个头文件里usingname
spaces
td
ouliten
·
2024-01-04 06:16
c++
TB-C/C++
data段内容,已初始化且不为0)赋初值(.bss段内容,未初始化的全局变量和静态变量)传参(argc,argv)atexit()在vs2010上没有效果#include#includeusingname
spaces
td
lucky1_1star
·
2024-01-04 05:47
c++
c语言
算法
第5章 【例题】(部分~)
【例5.1】使用继承的案例//【例5.1】使用继承的案例#include#includeusingname
spaces
td;classPerson{//声明基类public:Person(stringname1
计算机学无涯
·
2024-01-04 05:11
c++面向对象程序设计
c++
第3章 继承与派生的访问规则
【例5.1】使用继承的案例//【例5.1】使用继承的案例#include#includeusingname
spaces
td;classPerson{//声明基类public:Person(stringname1
计算机学无涯
·
2024-01-04 05:41
c++面向对象程序设计
c++
面向对象程序设计
c++ / day06
1.利用模板类完成顺序表(两天时间,今天至少写出大致框架)代码//implementtemplateinsqlist#include#include#defineMAXSIZE100usingname
spaces
td
溪北人
·
2024-01-04 04:11
c++
开发语言
C++ sleep() 和 usleep() 的区别
:设置一个时间参数,分别向sleep()和usleep()方法传入该参数,打印sleep和usleep前后的系统时间戳#include#include#include#includeusingname
spaces
td
leeo-J
·
2024-01-04 04:08
C++
c++之函数对象与内建函数
#includeusingname
spaces
td;classmyfunc{
IT_阿水
·
2024-01-04 02:46
C++
c++
算法
开发语言
字节笔试-N人相邻最大身高差最小值(最佳解法:贪心)
求最大身高差的最小值输入第一行为n(3#includeusingname
spaces
td;intmax(inta,intb){returna>b?
让AI服务于我
·
2024-01-04 01:10
教程
const的基础用法
#includeusingname
spaces
td;voidmain(){constinta=0;intconstb=1;//一样constint*c;//const修饰的是指针所指向的内存空间(即值)
猪八戒1.0
·
2024-01-04 01:40
C++就业
c++
开发语言
针对CSP-J/S的冲刺训练:Day 2 基础题
输入描述一行,一个正整数n(1#includeusingname
spaces
td;intmain(){//输入intn;cin>>n;//筛质数for(intnum=1;numusingname
spaces
td
AICodeThunder
·
2024-01-03 22:25
C/C++
算法
C++知识点总结(11):质因子分解
二、求质数程序#includeusingname
spaces
td;intmain(){intn;cin>>n;boolflag=true;//默认n是质数for(inti=2;iusingname
spaces
td
AICodeThunder
·
2024-01-03 22:55
C++知识点总结
C/C++
编程笔记
知识点总结
C++ DAY6 作业
1.用模板类写顺序表#includeusingname
spaces
td;#defineMAXSIZE10templateclassArr{T*data=NULL;intlen=0;public://构造函数
忆相逢cz
·
2024-01-03 22:14
c++
算法
开发语言
AcWing 167. 木棒 题解(搜索—DFS剪枝)
AcWing167.木棒DFS剪枝,具体过程看代码内部,另外排序也算剪枝的一部分#includeusingname
spaces
td;constintN=70;intn;intsum;intlen;intw
QingQingDE23
·
2024-01-03 22:25
搜索
深度优先
剪枝
算法
AcWing 167. 木棒 dfs+剪枝
题参考1参考2#includeusingname
spaces
td;typedeflonglongll;typedefunsignedlonglongull;typedefpairpii;#definepbpush_back
karshey
·
2024-01-03 22:54
我的ACM之路
剪枝
c++
算法
445111.猜先
#includeusingname
spaces
td;inta,b,s,s1,i;intmain(){for(i=1;i>a>>b;if(a!=7&&b!
以轻武烈
·
2024-01-03 21:19
算法
c++
数据结构
3075 7592:求最大公约数问题
#includeusingname
spaces
td;intgcd(intx,inty);intmain(){inta,b;cin>>a>>b;if(a<b){inttmp=
以轻武烈
·
2024-01-03 21:49
算法
c++
数据结构
1068 二分查找
#includeusingname
spaces
td;intx,a[10000]={0},l,r,mid;intmain(){cin>>x;for(inti=1;i>a[i];l=1;r=1500;while
以轻武烈
·
2024-01-03 21:49
算法
数据结构
c++
3294 李白的酒
#includeusingname
spaces
td;intmain(){intn;doubleans;scanf("%d",&n);for(inti=1;i<=n;i++)ans+=1,ans/=
以轻武烈
·
2024-01-03 21:49
c++
算法
开发语言
4462 4.曙曙献爱心
#includeusingname
spaces
td;intn,m,k;inta[1001];ints[1001];intf[1001][1001];//f[i][j],i个警察,j个点,能管理的最大人数
以轻武烈
·
2024-01-03 21:12
算法
c++
数据结构
开发语言
c++day5(2024/1/2)
#includeusingname
spaces
td;#includeusingname
spaces
td;intmonster=10000;classHero{protected:inthp;intattack
明渐
·
2024-01-03 21:07
c++
c++day4(2024/1/1)
#include#includeusingname
spaces
td;classPerson{intage;string&name;public://构造函数Person(intage,string&name
明渐
·
2024-01-03 21:07
c++
c++day3(2023/12/28)
#include#include#includeusingname
spaces
td;classPerson{int*age;string&name;public:voidshowPerson();Person
明渐
·
2024-01-03 21:37
c++
开发语言
c++day6(2024/1/3)
#include#includeusingname
spaces
td;#includeusingname
spaces
td;templateclassList{public:T1len;T2arr[20];
明渐
·
2024-01-03 21:34
c++
开发语言
二分查找(模板) & &C++STL(lower_bound)
#includeusingname
spaces
td;//二分查找记住二分查找的数据必须是(有序的)!!!!!!!
book0121
·
2024-01-03 19:37
算法刷题笔记
算法
数据结构
c++
12-28
#includeusingname
spaces
td;classPerson{int*age;string&name;public:voidss(){coutage)=*(other.age);}Person
limbojy0721
·
2024-01-03 19:34
c语言
12-29
#include#includeusingname
spaces
td;classPerson{intage;string&name;public://构造函数Person(intage,string&name
limbojy0721
·
2024-01-03 19:34
c++
算法
开发语言
第四章 课后题(部分~待更新~)
【4.18】指出下面程序中的错误,并说明原因//【4.18】指出下面程序中的错误,并说明原因#includeusingname
spaces
td;classCTest{public:CTest(){x=20
计算机学无涯
·
2024-01-03 19:28
c++面向对象程序设计
c++
C 练习实例17
代码示例#includeintmain(){charc;intletters=0,dijits=0,
spaces
=0,others=0;printf("请输入字符串:\n");while(scanf("
计算机学无涯
·
2024-01-03 19:58
c语言经典100题
c语言
c++期末考题笔试来咯
代码实现#include#includeusingname
spaces
td;classPerson{public:Person(stringname1,stringsex1,in
计算机学无涯
·
2024-01-03 19:25
c++面向对象程序设计
c++
C++复习之拷贝构造函数调用时机
#includeusingname
spaces
td;//拷贝构造函数调用时机classPerson{public:intm_age;Person(){cout<<"Person的默认构造函数"<
小华6不6
·
2024-01-03 16:03
算法
C++复习之构建函数
#includeusingname
spaces
td;classPerson{//每个类都会默认有构造函数(函数生成时有)和析构函数(释放函数时生成)//构造函数的分类:无参构造函数(默认)、有参构造函数
小华6不6
·
2024-01-03 16:32
c++
开发语言
C++复习之构造函数调用规则
1、创建一个类,C++会给每个类添加至少3个函数(默认(空实现),析构(空实现),拷贝构造(值拷贝))#includeusingname
spaces
td;classPerson{public:intm_age
小华6不6
·
2024-01-03 16:30
c++
开发语言
c++ switch语句
switch语句在说switch语句前,看一个不是很理想的if语句的示例使用ifelse语句打印一位数中文数字:#includeusingname
spaces
td;//打印一位中文数字intmain()
~不羁
·
2024-01-03 15:19
c++
入门大全
c语言
c++
双链表-数据结构
#include#includeusingname
spaces
td;constintN=100010;intidx,e[N],l[N],r[N];voidinit(){r[0]=1;l[1]=0;
L北杳
·
2024-01-03 13:51
数据结构
数据结构
散列表
蓝桥杯
单链表-数据结构
#includeusingname
spaces
td;constintN=100010;inthead,e[N],ne[N],idx;voidinit(){inthead=-1;intidx
L北杳
·
2024-01-03 13:21
数据结构
数据结构
蓝桥杯
散列表
栈-数据结构
前言:栈是重要的一种结构,它的特点是先进后出,从栈顶出,从栈顶入.定义一个栈stack[N],,和tt来移动下标.1.判断栈是否为空#includeusingname
spaces
td;constintN
L北杳
·
2024-01-03 13:21
数据结构
数据结构
算法
1207. 大臣的旅费(dfs求树的直径/图论)
代码:#include#include#includeusingname
spaces
td;constintN=100100;structEdge//边的id以及长度{intid,w;};vectorNode
hz2.0
·
2024-01-03 12:38
图论
dfs
深度优先
图论
算法
蓝桥杯
BZOJ4993 [Usaco2017 Feb]Why Did the Cow Cross the Road II 动态规划 树状数组
去博客园看该题解题目传送门-BZOJ4993题意概括有上下两行长度为n的数字序列A和序列B,都是1到n的排列,若abs(A[i]-B[j])#include#include#include#includeusingname
spaces
td
weixin_30376509
·
2024-01-03 11:33
数据结构与算法
bzoj 4993: [Usaco2017 Feb]Why Did the Cow Cross the Road II
若abs(A[i]-B[j])#include#include#include#includeusingname
spaces
td;intf[1010][1010],n;inta[1010],b[1010
fyc_kabuto
·
2024-01-03 11:32
dp
dp
[Usaco2017 Feb]Why Did the Cow Cross the RoadII
id=4993[算法]动态规划转移类似于求LCS[代码]#includeusingname
spaces
td;#defineMAXN1010intn;inta[MAXN],b[MAXN];intf[MAXN
a576969381
·
2024-01-03 11:00
数据结构与算法
php
4993. FEB
相邻的两个字符是B或者E表示1的价值,字符串S的价值为所有价值之和输出所有价值可能的数目,并且按照升序输出所有可能价值数据范围1≤N≤2×105输入4BEEF输出212代码#includeusingname
spaces
td
三冬四夏会不会有点漫长
·
2024-01-03 11:26
2024寒假每日一题
笔记
c++病毒3.0
include#include#definea415#defineb466#definec554#defined622#definee740#definef831#defineg932usingname
spaces
td
gezhengxu2024(已隕落)
·
2024-01-03 10:26
c++
病毒
c++
病毒
你会密码吗3046:练9.3 加四密码
#includeusingname
spaces
td;intmain(){charc1,c2,c3,c4,c5;cin>>c1>>c2>>c3>>c4>
gezhengxu2024(已隕落)
·
2024-01-03 10:26
c++
编程启蒙
c++
编程启蒙
ncccu 11.26 比赛代码
1#includeusingname
spaces
td;classTime{private:inth,m,s;public:Time(int_h,int_m,int_s):h(_h),m(_m),s(_s
JorbanS
·
2024-01-03 10:24
OI
题解
c++
对C语言指针的理解
指针变量的巧妙使用可以减少内存中相同变量值的重复存储多级指针中,一级指针指向普通变量的地址,二级指针指向一级指针的地址,三级指针指向二级指针的地址,依此类推,无限套娃一段恶臭代码:#include#includeusingname
spaces
td
WTcrazy _
·
2024-01-03 08:36
算法拾遗
c语言
c++
开发语言
牛客算法竞赛题解
文章目录[NOIP2001]数的划分[NOIP2001]数的划分DFS#includeusingname
spaces
td;intn,k,res;structNum{intnow,cnt;};voidDFS
WTcrazy _
·
2024-01-03 08:59
算法拾遗
算法
深度优先
动态规划
C语言实现堆结构及堆排序
//要想实现堆排序首先需要实现一个大根(小根)堆#include#include#includeusingname
spaces
td;staticvectorvec;staticvoidmyswap(inti
lpl312905509
·
2024-01-03 07:35
数据结构与算法
12/1作业
#includeusingname
spaces
td;classPerson{//全局函数从类中读取私有数据类型,需要进行友元的声明friendconstPersonoperator-(constPerson
Sinbia_Lurika
·
2024-01-03 07:33
javascript
算法
开发语言
上一页
88
89
90
91
92
93
94
95
下一页
按字母分类:
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
其他