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
day2:c++
#includeusingname
spaces
td;structstu{private:intage;stringsex;inttall;public:doublescore;voidset(inta,
闫雅南
·
2024-01-05 04:44
c++
开发语言
C++:第五天
#includeusingname
spaces
td;intblood=10000;//怪兽classhero{protected:stringname;inthp;intattck;public:hero
闫雅南
·
2024-01-05 04:44
算法
【无标题】
(),perform(),在子类中,对纯虚函数进行重写;要求:定义一个全局函数,形参固定,通过不同的实参完成在全局函数中对不同类重写的perform和sound的调用#includeusingname
spaces
td
闫雅南
·
2024-01-05 04:44
c++
开发语言
POJ 2456 Aggressive cows (二分 基础)
65536KTotalSubmissions:7924Accepted:3959DescriptionFarmerJohnhasbuiltanewlongbarn,withN(2#includeusingname
spaces
td
_TCgogogo_
·
2024-01-05 04:03
二分/三分/两点法
POJ
二分
命令行之贪吃蛇
include#include#include#include#defineCoord_x15#defineCoord_y15#defineHeight20#defineWidth18usingname
spaces
td
_TCgogogo_
·
2024-01-05 04:33
命令行小游戏
南邮离散数学实验1 (简单版) 根据真值求真值表和主范式
#include#includeusingname
spaces
td;intconstMAX=1e6;shorttrue_value[MAX];//真值shorttrue_table[MAX][10];/
_TCgogogo_
·
2024-01-05 04:33
实验
离散数学
牛客小白月赛84
牛客小白月赛84A签到#includeusingname
spaces
td;typedeflonglongll;typedefdoubledb;voidsolve(){intn,m,x,y;cin>>n>
奔跑的乌龟_
·
2024-01-05 01:42
解题报告&VP
算法
数据结构
【算法基础15】如何求约数?约数个数?约数之和?最大公约数?
vectorget_divisors(intn){vectorres;for(inti=1;i#include#include#includeusingname
spaces
td;typed
努力努力的脆脆鲨
·
2024-01-05 01:28
算法基础
算法
c++
数据结构
【算法基础】高精度运算
来存储这些数为了方便进位,需要将原数字倒过来存储到vector中加完所有位之后别忘了判断最后一位的进位最后需要将vector中的数倒着输出#include#include#includeusingname
spaces
td
为梦而生~
·
2024-01-04 23:47
基础算法
算法
c++
开发语言
高精度
acm
算法-递归-分解因式
*an,并且1#includeusingname
spaces
td;intcount;voidDiv(intm,intk){inti;for(i=k;i>n;while(n--){cin>>
❀%
·
2024-01-04 23:26
算法
算法-动态规划-最长上升子序列
题目描述一个数的序列bi,当b1usingname
spaces
td;inta[1000];//存储序列intMaxLen[1000];intmain(){intn;inti,j;while(~scanf
❀%
·
2024-01-04 23:56
算法
C语言中的strcpy和strcat函数
将一个字符串的内容拷贝到另一个字符串;strcat的作用是:将字符串的内容拼接到另一个字符串之后.再补充一个长得类似的函数:strcmp函数strcmp函数的作用相当于C++中的>#includeusingname
spaces
td
踏过山河,踏过海
·
2024-01-04 23:24
刷遍蓝桥杯
c语言
qt
c++
C++:通过erase删除map的键值对
可以通过以下几种方式使用erase1.通过迭代器进行删除#include#include#includeusingname
spaces
td;voidpMap(conststring&w,constauto
风静如云
·
2024-01-04 22:49
C/C++
c++
【PAT甲级】1173 How Many Ways to Buy a Piece of Land
代码实现:#includeusingname
spaces
td;intp[10005];//priceintn,m,num;voiddfs(inti
一碗姜汤
·
2024-01-04 21:04
PAT甲级
算法
深度优先
C++ 下标运算符的重载
#includeusingname
spaces
td;classstu{public:inta,b,c,nError;doubled;stu(){a=12;c=13;b=14;d=45.45;nError
clown_30
·
2024-01-04 19:12
c++
开发语言
c++统计文件中出现某位数的个数
#define_CRT_SECURE_NO_WARNINGS#include#include#include#defineNUM33#defineNUM27usingname
spaces
td;//统计次数
畅的bl0g
·
2024-01-04 18:58
c++
开发语言
也谈谈马斯克的星盘
“我对下一次飞行的期望是进入轨道,”马斯克2023年4月29日(周六)在Twitter
Spaces
上的一次讨论中说。
镜魂
·
2024-01-04 18:31
C++零基础自学笔记
第一课数据类型#includeusingname
spaces
td;/*main是一个程序的入口每个程序都必须有一个函数有且仅有一个*/intmain(){//变量创建的语法;数据类型变量名=变量初始值inta
小瑜游上岸
·
2024-01-04 18:10
c++
笔记
开发语言
算法基础之最大不相交区间数量
最大不相交区间数量核心思想:贪心按照右端点排序若下一个区间的左端点大于上一个取得区间的右端点则res++和区间选点一模一样#include#includeusingname
spaces
td;constintN
阳光男孩01
·
2024-01-04 17:59
算法
c++
数据结构
开发语言
算法基础之区间选点
区间选点核心思想:贪心每次只看当前的最优解将所有区间按右端点排序从小到大遍历所有区间为了覆盖更多区间取右端点作为选点若两区间互相没有交集则再取点#include#includeusingname
spaces
td
阳光男孩01
·
2024-01-04 17:29
算法
数据结构
c++
算法基础之区间分组
区间分组核心思想:贪心若所有组中右端点最大值都比当前遍历的区间的左端点大则需要开新组为了让组数最多根据左端点排序#include#include#includeusingname
spaces
td;constintN
阳光男孩01
·
2024-01-04 17:27
算法
深度优先
图论
数据结构
c++
从C到C++ | C++入门(三)
例子:#includeusingname
spaces
td;//内联函数inlineintAdd(intx,inty){returnx+y;}intmain(){intret=0;ret=Add(1,2)
福楠
·
2024-01-04 17:19
c语言
c++
C&C++刷题练习
你的任务是通过编程,找出断号的ID和重号的ID假设断号不可能发生在最大和最小号输入描述:要求程序首先输入一个整数N(Nusingname
spaces
td;i
烟雨长虹,孤鹜齐飞
·
2024-01-04 16:53
c语言
c++
开发语言
从C++习题中思考
#includeusingname
spaces
td;intmain(){cout>v1>>v2;coutv2){while(v1>=v2){coutusingname
spaces
td;
卖栗子的小松鼠
·
2024-01-04 16:14
C++
c++
C++day6作业
#include#includeusingname
spaces
td;intmain(){vectorv1;//无参vectorv2(5,10);//五个十//判断是否为空cout#defineMAXSIZE10usingname
spaces
td
傻猪猪一枚
·
2024-01-04 15:00
c++
算法
开发语言
leetcode刷题记录12(2023-07-02)【完全平方数(动态规划) | 移动零(冒泡排序) | 寻找重复数 | 删除无效的括号(暴力搜索+剪枝)】
示例1:输入:n=12输出:3解释:12=4+4+4示例2:输入:n=13输出:2解释:13=4+9提示:1#includeusingname
spaces
td;classSolution{pub
Cherries Man
·
2024-01-04 13:52
刷题笔记
leetcode
动态规划
剪枝
C++中的 greate/less 比较器模板的实现原理及作用
这里是std::greater的简单实现:name
spaces
Cherries Man
·
2024-01-04 13:52
C++
c++
信息学竞赛中的数学 习题集 251-260(10题)
251、3166:练27.3称心如意信息学奥赛一本通-编程启蒙(C++版)在线评测系统#includeusingname
spaces
td;intmain(){intx;//cout>x;/*if(x100
dllglvzhenfeng
·
2024-01-04 12:11
小学生C++趣味编程
创新
程序猿的数学
算法
程序员的数学
信奥中的数学
信息学竞赛中的数学
C++
GESP
C++启蒙
信息学竞赛中的数学 习题集 241-250(10题)
241、3161:【例27.1】求整数的和与均值信息学奥赛一本通-编程启蒙(C++版)在线评测系统#include#includeusingname
spaces
td;intmain(){intn,a,c
dllglvzhenfeng
·
2024-01-04 12:11
创新
程序猿的数学
小学生C++趣味编程
算法
c++
GESP
C++启蒙
程序员的数学
信奥中的数学
信息学竞赛中的数学
C++字符数组(4)
123输出复制3#include#include#includeusingname
spaces
td;intmain(){chara[110];cin.getline(a,110);intl=strlen
BanyeBirth
·
2024-01-04 11:25
数据结构
开发语言
C++二维数组(2)
1#includeusingname
spaces
td;intmain(){inta[110][110];in
BanyeBirth
·
2024-01-04 11:25
c++
算法
开发语言
C++单分支计算
1037-恐龙园买门票#includeusingname
spaces
td;intmain(){floatn=1.3;floatm;cin>>m;if(musingname
spaces
td;intmain
BanyeBirth
·
2024-01-04 11:55
c++
开发语言
算法
C++循环输出
#includeusingname
spaces
td;intmain(){for(intn=100;nusingname
spaces
td;intmain(){inta=555555;intn;for(n=
BanyeBirth
·
2024-01-04 11:55
c++
算法
开发语言
C++拆位运算
1605-求一个两位数的个位和十位的和#include#includeusingname
spaces
td;intmain(){inta;cin>>a;intx=a/10;inty=a%10;ints=x
BanyeBirth
·
2024-01-04 11:54
c++
开发语言
算法
同构数问题
例如,5是25的同构数,25是625的同构数.编程序满足如下要求:输入两个整数a,b(0#includeusingname
spaces
td;intquwei(inty);//取一个数的位数intfanxu
xioaobai_huan
·
2024-01-04 09:54
基础编程题目
c++
作业--day38
#include#includeusingname
spaces
td;classPerson{private:int*age;string&name;public
chen_林凯
·
2024-01-04 08:59
c++
作业--day39
score,写出两个类的构造函数、析构函数、拷贝构造和拷贝赋值函数,完成对Person的运算符重载(算术运算符、条件运算符、逻辑运算符、自增自减运算符、插入/提取运算符)#includeusingname
spaces
td
chen_林凯
·
2024-01-04 08:59
c++
作业--day41
利用模板类完成顺序表#includeusingname
spaces
td;//模板类templateclassSeqTab{Tarr[20];intmaxsize;public:SeqTab():maxsize
chen_林凯
·
2024-01-04 08:26
c++
2019-07-13(day032_Sobel: 实现索贝尔梯度挖掘的方法 )
c++#include"all.h"usingname
spaces
td;usingnamespacecv;voidMyClass::day032(){Matimg=read(PATH+"images\\
雨住多一横
·
2024-01-04 08:04
C++实验3——个人所得税计算器
月7日*版本号:v1.0*对任务及求解方法的描述部分:*输入描述:个人收入*问题描述:求税收和税后收入*程序输出:税后收入*问题分析:*算法设计:*/#include#includeusingname
spaces
td
renhj1001
·
2024-01-04 08:31
C++作业
C++第4次作业
【项目6:输出星号图】编程序输出*#includeusingname
spaces
td;intmain(){inti,j;for(i=2;iusingname
spaces
td;intmain(){inti
renhj1001
·
2024-01-04 08:31
C++作业
C++第5次作业
项目2:数组选择从键盘中输入10个数放在数组A中,将该数组中不重复的数放到数组B中,如A数据中的值为1,2,3,4,2,1;则B数组中的值为34#includeusingname
spaces
td;intmain
renhj1001
·
2024-01-04 08:31
C++作业
C++第7次作业
参考答案:145#includeusingname
spaces
td;intfactorial(int);intmain(){intx[3];inti,j,a;cout0;i--)a=a*i;returna
renhj1001
·
2024-01-04 08:31
C++作业
01.02
#includeusingname
spaces
td;intblood=10000;classhero{protected:stringname;inthp;intattck;public:hero(){
云乐866
·
2024-01-04 08:07
c++
12.27
#includeusingname
spaces
td;structA{voidadd(inta,intb){coutusingname
spaces
td;classStu{//C++中的结构体可以添加访问权限
云乐866
·
2024-01-04 08:37
c++
算法
开发语言
12.28
#includeusingname
spaces
td;classPerson{int*age;string&name;public://构造函数Person(string&name):age(newint
云乐866
·
2024-01-04 08:37
前端
javascript
开发语言
12.30
#includeusingname
spaces
td;classPerson{intage;string&name;public:Person(intage,string&name):age(age),name
云乐866
·
2024-01-04 08:37
c++
01.03
利用模板类完成顺序表#includeusingname
spaces
td;#defineMAXSIZE6templateclassS{Tdata[MAXSIZE];intlen;public://清空intempty
云乐866
·
2024-01-04 07:32
算法
数据结构
hoj1030(未解决)
1030源码:#include#include#include#includeusingname
spaces
td;intmain(){intn,m;while(scanf("%d%d",&n,&m)!
董玉恒_算法训练营
·
2024-01-04 07:01
6. C++ emplace_back()
将已构造好的元素插入vector的末尾当使用push_back()时,看如下代码,先构造变量a,再调用push_back()代码如下:#include#includeusingname
spaces
td;
sober_me
·
2024-01-04 07:52
分布式
c++
java
开发语言
上一页
87
88
89
90
91
92
93
94
下一页
按字母分类:
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
其他