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
12.4 C++ 作业
完成沙发床的多继承#includeusingname
spaces
td;//封装沙发类classSofa{private:string*sitting;public://无参构造函数Sofa(){cout
qjw.c
·
2023-12-05 07:49
c++
开发语言
算法
分油问题C++求解
代码#include#include#include#includeusingname
spaces
td;classR{public:intl,v;};classT{public:Ra,b,c;intlast
氷凌公子
·
2023-12-05 07:12
C++
算法
c++
开发语言
广度优先
算法
快速排序&sort()用法
快速排序实现原理:#include#includeusingname
spaces
td;voidquick_sort(intarry[],intmaxlen,intop,inted);intmain(){
henuzsh
·
2023-12-05 07:57
C/C++
快速排序
sort函数
C++ 控制结构
if语句1.单行if语句#includeusingname
spaces
td;intmain(){##单行if语句//输入分数intscore=0;cout>score;//打印输入的分数cout600)
小潤澤
·
2023-12-05 06:45
周期串(Periodic Strings, UVa455)
输入一个长度不超过80的字符串,输出其最小周期思路:从第二个元素开始和第一个元素比较,如果相同则同时向右循环对比,如果全部一致则最小周期是j-i#include#include#includeusingname
spaces
td
复习你给的温柔
·
2023-12-05 05:02
每天一道算法题
算法
得分(Score, ACM/ICPC Seoul 2005, UVa1585)
#include#include#includeusingname
spaces
td;#defineMAXN81intmain(){intt=0,su
复习你给的温柔
·
2023-12-05 05:31
每天一道算法题
c++
算法
开发语言
生成元(Digit Generator, ACM/ICPC Seoul 2005, UVa1583)
#include#include#includeusingname
spaces
td;intsum(intn)//求n加上n的各个数字之和{ints
复习你给的温柔
·
2023-12-05 05:55
每天一道算法题
算法
c++
开发语言
C++之算术生成算法
C++之算术生成算法accumulate#includeusingname
spaces
td;#include#includevoidtest(){vectorv;for(inti=0;iusingname
spaces
td
傻童:CPU
·
2023-12-05 04:02
C++
c++
算法
开发语言
LISP~~~~~
#include#include#include#includeusingname
spaces
td;voidLisp(stringstr){vectorst;stackres;boolflag=true
多情刀客无情刀
·
2023-12-05 03:09
算法
lisp
c++
算法
2023年11月30日作业
#includeusingname
spaces
td;classPer{private:stringname;intage;double*high;double*weight;public:Per(){cout
Huai1230
·
2023-12-05 01:34
c++
2023.12.01
#includeusingname
spaces
td;classPap{friendconstPapoperator*(constPap&L,constPap&R);friendbooloperator<
Huai1230
·
2023-12-05 01:34
c++
算法
开发语言
2023年11月28日作业
#includeusingname
spaces
td;intmain(){cout='A'&&str[i]='a'&&str[i]='0'&&str[i]<='9'){num++;}elseif(str[
Huai1230
·
2023-12-05 01:04
c++
2023年11月29日作业
代码#includeusingname
spaces
td;classRect{private:intwidth;intheight;public:voidinit(intw,inth);voidset_w
Huai1230
·
2023-12-05 01:04
c++
算法
开发语言
2023年12月4日:多继承
代码#includeusingname
spaces
td;classSofa{private:stringsit;int*len;public:Sofa(){cout<<"Sofa::无参构造函数"<
Huai1230
·
2023-12-05 01:34
c++
acwing.95.费解的开关
费解的开关#include#include#include#includeusingname
spaces
td;constintN=6;chara[N][N],backup[N][N];intax[N]=
小帅吖
·
2023-12-05 00:48
AcWing 95. 费解的开关(递推)
题目#include#include#include#includeusingname
spaces
td;constintN=6;charg[N][N],backup[N][N];//backup用于存储
God_gong
·
2023-12-05 00:18
二叉树可视化代码
.cpp功能:二叉树操作*/#include#include#include#include#include#include#include#definemax100#includeusingname
spaces
td
反人君子三十三
·
2023-12-04 23:30
算法
pta——求解迷宫从入口到出口的路径
#include"bits/stdc++.h"usingname
spaces
td;intflag;intmaze[10][10];stack>p;boolvis[10][10];pairfind1[4]
_Nickname
·
2023-12-04 23:25
算法
c++二叉树遍历已知中序,后序求前序
我们以洛谷一道题举例P1030[NOIP2001普及组]求先序排列下面是我的AC代码#include"bits/stdc++.h"usingname
spaces
td;strings1,s2;voidwork
_Nickname
·
2023-12-04 23:55
算法
Ubuntu 16.04中OpenCV 2.3处理视频
背景由于项目需要用OpenCV2.3的视频处理功能,代码如下:#include#include"opencv2/opencv.hpp"usingname
spaces
td;usingnamespacecv
一恪slam
·
2023-12-04 23:16
数位DP(acwing)
https://www.acwing.com/problem/content/1083/代码:#include#include#include#includeusingname
spaces
td;constintN
wyn66666
·
2023-12-04 22:27
算法
动态规划
蓝桥杯ACwing习题
选择一个i对应的j要在l到r区间还需要满足异或的条件//那么就是f[i]=l是否存在即可//预处理出每一个i前面所有满足条件的f[i]#include#include#includeusingname
spaces
td
wyn66666
·
2023-12-04 22:57
蓝桥杯
算法
职场和发展
蓝桥杯习题ACwing
://www.acwing.com/problem/content/description/3716/#include#include#include#include#includeusingname
spaces
td
wyn66666
·
2023-12-04 22:27
蓝桥杯
动态规划
职场和发展
蓝桥杯ACwing习题
https://www.acwing.com/problem/content/description/3427/代码及注释#include#include#includeusingname
spaces
td
wyn66666
·
2023-12-04 22:26
蓝桥杯
算法
职场和发展
C++多态性与虚函数(谭浩强12.1-12.4)
例12.1,一个典型的建立点、面、体的静态多态性例子:#includeusingname
spaces
td;classPoint{public:Point(floatx=0,floaty=0);voidsetPoint
flyer飞亚
·
2023-12-04 22:43
C++程序设计
c++
C++12.1
三种运算符重载,每个至少实现一个运算符的重载#includeusingname
spaces
td;classPerson{friendconstPersonoperator-(constPerson&L,
47不乖
·
2023-12-04 22:11
javascript
开发语言
ecmascript
C++11.28
提示并输入一个字符串,统计该字符中大写、小写字母个数、数字个数、空格个数以及其他字符个数(要求使用C++风格字符串完成)#includeusingname
spaces
td;intmain(){stringstr
47不乖
·
2023-12-04 22:41
c++
算法
开发语言
C++11.30
代码:#includeusingname
spaces
td;classPer{private:stringname;intage;double*hight;double*weight;public:Per
47不乖
·
2023-12-04 22:41
c++
开发语言
C++ primer plus 编程练习12.4
Stack(intn){pitems=newItem[MAX];top=0;for(;top#include//orctype.h#include"stack.h"intmain(){usingname
spaces
td
小猴啊0.0
·
2023-12-04 22:39
c++
算法
开发语言
C++12.4
沙发床的多继承多继承代码实现沙发床沙发床继承于沙发和床代码:#includeusingname
spaces
td;//封装沙发类classSofa{private:stringsitting;double
47不乖
·
2023-12-04 22:34
c++
具有标记和笔记功能的文件管理器Tag
Spaces
(续)
在本文中,我们将重点讨论Tag
Spaces
的遗留问题。文章传送门:具有标记和笔记功能的文件管理器Tag
Spaces
问题提出问题朋友最近在用TagSpace
杨浦老苏
·
2023-12-04 22:22
群晖
docker
笔记
S3
插入、希尔、冒泡、快速、选择排序C++实现
插入、希尔、冒泡、快速、选择排序C++实现#includeusingname
spaces
td;voidprintRes(inta[],intn);voidinsertSort(inta[],intn,boolflag
这是一个图像
·
2023-12-04 21:13
算法
c++
算法
开发语言
蓝桥杯 枚举
例题讲解特别数的和#includeusingname
spaces
td;boolifspecial(intn){while(n){if(n%10==0||n%10==1||n%10==2||n%10==9
暗托涅瓦
·
2023-12-04 20:58
蓝桥杯刷题
蓝桥杯
职场和发展
算法
c语言
枚举
蓝桥杯 动态规划
01数字三角形#includeusingname
spaces
td;constintN=105;usingll=longlong;lla[N][N],dp[N][N];intmain(){intn;cin
暗托涅瓦
·
2023-12-04 20:52
蓝桥杯刷题
动态规划
算法
ACM程序设计课内实验(3) 循环节问题
每个测试用例在一行中包含3个整数A、B和n(1#includeusingname
spaces
td;intmain(){vectordp(100000001,-1);intA,B,n;while(cin>
烟雨平生9527
·
2023-12-04 20:41
算法学习笔记
算法
【C++】this指针讲解超详细!!!
三、this指针的特性四、案例分析一、this指针引入1.引入#includeusingname
spaces
td;classData{public:voidInit(intyear,intmonth,intday
阿然成长日记
·
2023-12-04 20:58
C++基础
c++
开发语言
洛谷刷题DFS-《全排列》-递归
#includeusingname
spaces
td;intn;boolvis[20];inta[20];voidpr(){for(inti=1;in){pr();}for(inti=1;i>n;dfs
简生_
·
2023-12-04 18:11
算法学习C++
算法
P1012 [NOIP1998 提高组] 拼数( 字典序 )
2.若前面部分均相同,取长度较短的在前#include#include#includeusingname
spaces
td;stringarr[60];intcmp(stringa,stri
%d%d2
·
2023-12-04 18:07
#
数学
算法
c++
数据结构
穷游?“穷”游?
小A所在的世界一共有n(n#include#include#includeusingname
spaces
td;structNode{intcost;//距离intcountry;//到达了哪个国家intspent
云风Com
·
2023-12-04 18:01
算法
【数据结构/C++】树和二叉树_二叉链表
#includeusingname
spaces
td;//二叉链表typedefstructBiTNode{intdata;structBiTNode*lchild,*rchild;BiTNode(){lchild
小谢sd
·
2023-12-04 17:33
C/C++
数据结构
数据结构
c++
链表
【C++】运算符重载
加号运算符重载#includeusingname
spaces
td;classPerson{public://成员函数实现运算符重载//Personoperator+(Person&p)//{//Persontemp
小谢sd
·
2023-12-04 17:02
C/C++
c++
开发语言
(2023码蹄杯)省赛(初赛)第二场真题(原题)&(题解+AC代码)
MC0214捡麦子码题集OJ-捡麦子(matiji.net)思路:1.第n米在前n-1米的基础上多加一个n个麦子,那么直接从1开始枚举,累加答案即可AC_Code:C++#includeusingname
spaces
td
东方翱翔
·
2023-12-04 16:09
码蹄集&百度之星
算法
(2023码蹄杯)省赛(初赛)第三场真题(原题)&(题解+AC代码)
堆煤球(matiji.net)思路:1.i从l枚举到r,i是8的倍数就跳过,i不是8的倍数就用等差数列求和公式i(1+i)/2,最后累加到答案中即可AC_Code:C++#includeusingname
spaces
td
东方翱翔
·
2023-12-04 16:09
码蹄集&百度之星
算法
数据结构
c++中的stod()与stoi()两大函数的应用
#includeusingname
spaces
td;intmain(){//1:stoi函数会截取整数部分转化为int型//2:stoi在截取过程中遇到不是数字字符,直接停止截数//3:stoi如果数字字符串前面为空格会直接跳过空格进行截数
东方翱翔
·
2023-12-04 16:39
c++
(蓝桥杯)1125 第 4 场算法双周赛题解+AC代码(c++/java)
题目一:验题人的生日【算法赛】验题人的生日【算法赛】-蓝桥云课(lanqiao.cn)思路:1.又是偶数,又是质数,那么只有2喽AC_Code:C++#includeusingname
spaces
td;
东方翱翔
·
2023-12-04 16:08
蓝桥杯&数据结构与算法
蓝桥杯
算法
职场和发展
PTA 6-5 折半查找 (双指针用法)
裁判测试程序样例:#includeusingname
spaces
td;#defineMAXSIZE50typedefintKeyType;typedefstruct{Key
萌新小码农
·
2023-12-04 16:06
算法题
算法
C/C++,图算法——凸包的快速壳(Quick Hull)算法的源代码
#includeusingname
spaces
td;//iPairisintegerpairs#defineiPairpair//Storestheresult(pointsofconvexhull)sethull
深度混淆
·
2023-12-04 16:25
C#算法演义
Algorithm
Recipes
算法
c语言
c++
数值计算
数据结构
C++指针常量与常量指针
指针常量:指针本身是常量,指针的值不能改变常量指针:指针指向的值是“常量”(打引号表示的是不能通过指针改变指向的值,这个层面的常量,不一定要真的指向常量)上代码和注释:#includeusingname
spaces
td
米斯特芳
·
2023-12-04 15:27
华清远见嵌入式学习——C++——作业一
作业要求:代码:#includeusingname
spaces
td;intmain(){stringstr;cout='A'&&str[i]='a'&&str[i]='0'&&str[i]<='9'){
谢俊翔
·
2023-12-04 14:53
学习
华清远见嵌入式学习——C++——作业3
作业要求:代码:#includeusingname
spaces
td;classPer{private:stringname;intage;double*high;double*weight;public
谢俊翔
·
2023-12-04 14:53
学习
上一页
110
111
112
113
114
115
116
117
下一页
按字母分类:
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
其他