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++作业1
提示并输入一个字符串,统计该字符中大写、小写字母个数、数字个数、空格个数以及其他字符个数要求使用C++风格字符串完成代码:#includeusingname
spaces
td;intmain(){stringstr
施纪
·
2023-12-01 20:38
开发语言
C++作业2
voidinit(intw,inth)更改宽度的函数:set_w(intw)更改高度的函数:set_h(inth)输出该矩形的周长和面积函数:voidshow()代码:#includeusingname
spaces
td
施纪
·
2023-12-01 20:38
c++
开发语言
C++作业4
代码整理,将学过的三种运算符重载,每个至少实现一个运算符的重载代码:#includeusingname
spaces
td;classStu{friendconstStuoperator*(constStu
施纪
·
2023-12-01 20:38
c++
01背包问题动态规划解法
二维数组dp#include#includeusingname
spaces
td;vectorweight={1,3,4};vectorvalue={15,20,30};intbagWeight=4;vector
可乐不加冰呀
·
2023-12-01 20:06
C++学习基础学习
算法学习
动态规划
算法
CCFCSP试题编号:202104-2试题名称:邻域均值
#includeusingname
spaces
td;intA[605][605];intans=0;intacc[605][605];intmain(){intn,L,r,t;cin>>n>>L>>r>
可乐不加冰呀
·
2023-12-01 20:06
ccf-csp练习题题解
算法学习
均值算法
算法
C++作业3
代码:#includeusingname
spaces
td;classPer{private:stringname;intage;double*height;double*weight;public:Per
施纪
·
2023-12-01 20:05
c++
开发语言
CCFCSP试题编号:202009-2试题名称:风险人群筛查
#includeusingname
spaces
td;//判断是否在区域boolisIn(intxl,intyd,intxr,intyu,intx,inty){if((x>=xl&&x=yd&&y>n>>
可乐不加冰呀
·
2023-12-01 20:34
ccf-csp练习题题解
c++
c++的list容器的基本操作
#define_CRT_SECURE_NO_WARNINGS#include#include#include#include#includeusingname
spaces
td;voidtest01(){
落落落sss
·
2023-12-01 20:26
c++
list
开发语言
12.1 C++ 作业 运算符重载
#includeusingname
spaces
td;classPerson{friendconstPersonoperator-(constPerson&L,constPerson&R);friendbooloperatorp2
qjw.c
·
2023-12-01 20:54
c++
算法
javascript
c++的set容器和map容器
set容器#define_CRT_SECURE_NO_WARNINGS#include#include#include#includeusingname
spaces
td;//set不给有重复的值,但是插入相同的数值不会报错
落落落sss
·
2023-12-01 20:23
c++
开发语言
10.30 作业 C++
#includeusingname
spaces
td;classPer{private:stringname;intage;int*height;int*weight;public:Per(){cout<
qjw.c
·
2023-12-01 20:52
c++
开发语言
子类出现和父类同名的成员,子类如何访问父类的同名成员?
#includeusingname
spaces
td;classBase{public:Base(intage=0):m_age(age){}intget_age(){returnm_age;}staticintget_counter
微尘8
·
2023-12-01 19:06
C/C++基础知识
c++
算法
开发语言
子类拷贝构造函数会调用父类拷贝构造函数吗?
#include#includeusingname
spaces
td;classParent{public:Parent(stringhome_address="中国"):m_home_address(home_address
微尘8
·
2023-12-01 19:34
C/C++基础知识
c++
算法
开发语言
输入两个整数,输出它们的乘积。 ← Python 及 C++ 代码比较
【Python代码】x,y=map(int,input().split())print(x*y)【C++代码】#includeusingname
spaces
td;intx,y;intmain(){cin
hnjzsyjyj
·
2023-12-01 19:57
信息学竞赛
Python程序设计
#
基础语法
c++
python
Azure Kinect 获取深度图
#include#include#include//OpenCV#include#include#include//KinectDK#includeusingnamespacecv;usingname
spaces
td
黄芍药
·
2023-12-01 17:55
C++ 修改文件创建时间、修改时间属性
假设E盘下有一个文件test.txt,执行下述程序:#include#include#includeusingname
spaces
td;intmain(intargc,char**argv){ SYSTEMTIMEcreateTime
明月清风-精进不止
·
2023-12-01 17:50
c++
开发语言
C++:多维数组
:intarr[2][3]首先arr是一个含有2个元素的数组,而它的元素也有自己的维度,所以arr的元素本身又都是含有4个元素的数组;#include#include#includeusingname
spaces
咩咩要学习
·
2023-12-01 17:41
c++
学习笔记
C++实现阶乘函数
下面是一个利用循环实现的C++阶乘函数:#includeusingname
spaces
td;longlongfactorial(intn){longlongresult=1;for(inti=1;i>n
后端工程实践
·
2023-12-01 17:28
c++
算法
开发语言
编程
C++--封装
语法:class类名{访问权限:属性/行为};实例一设计一个圆类,求圆的周长和面积#include#includeusingname
spaces
td;constdoubl
实验室里哈啤酒
·
2023-12-01 16:50
c++
开发语言
后端
C++类和对象—封装
#includeusingname
spaces
td;classStudent//学生类{public://公共权限//定义属性:str
程序猿高猴er
·
2023-12-01 16:50
笔记
c++
c++类和对象--封装--属性和行为做整体
封装的意义1.将属性和行为当做一个整体来表现对象类中的属性和行为统称为成员:属性又叫成员属性或成员变量行为又叫成员函数或成员方法//案例:设计一个圆类,求圆的周长#includeusingname
spaces
td
Courage_D
·
2023-12-01 16:45
#
c++
学习
c++
蓝桥杯
开发语言
11.30 C++类特殊成员函数
#includeusingname
spaces
td;classPer{private:stringname;intage;double*high;doubleweight;public://构造函数Per
久驻
·
2023-12-01 16:59
c++
开发语言
算法
C++中异常的栈展开概念
(注意:这里不从操作系统层面来讨论函数调用栈等相关观念)看下面一个示例:C++中的异常和堆栈展开#include#includeusingname
spaces
td;classMyException{};
coolhuhu~
·
2023-12-01 15:25
c++
开发语言
ZLib库使用
简单做了下Zlib库的测试#include"zip/zlib.h"#includeusingname
spaces
td;intmain(){unsignedcharbuff[2048]={0};unsignedcharcompressBuff
紫云星
·
2023-12-01 14:22
C++
Zlib
C/C++,图算法——求强联通的Tarjan算法之源程序
1文本格式#includeusingname
spaces
td;constintmaxn=1e4+5;constintmaxk=5005;intn,k;intid[maxn][5];chars[maxn]
深度混淆
·
2023-12-01 10:05
C#算法演义
Algorithm
Recipes
算法
c语言
图论
11.28作业
#includeusingname
spaces
td;intmain(){stringstr1;getline(cin,str1);inta=0,b=0,c=0,d=0,e=0;for(inti=0;i=
sleepkewu
·
2023-12-01 10:22
c++
算法
开发语言
11.29作业
初始化函数:voidinit(intw,inth)更改宽度的函数:set_w(intw)更改高度的函数:set_h(inth)输出该矩形的周长和面积函数:voidshow()#includeusingname
spaces
td
sleepkewu
·
2023-12-01 10:22
c++
算法
开发语言
作业11.30
#includeusingname
spaces
td;classPer{private:stringname;intage;doubleweight;doubleheight;public:Per(){/
极光之见
·
2023-12-01 10:21
c++
刷题记录(自己看的习题本)(74_11.30)
杂区间和(离散化)题目链接:802.区间和-AcWing题库#include#include#includeusingname
spaces
td;constintN=300010;//n次插入和m次查询相关数据量的上界
德布得寥
·
2023-12-01 10:42
算法
数据结构
11.30作业
#includeusingname
spaces
td;classPer{private:stringname;intage;double*high;double*weight;public:Per(){}
sleepkewu
·
2023-12-01 10:08
c++
开发语言
12-C++面向对象(父类指针、子类指针、多态、虚函数、虚表)
父类指针、子类指针父类指针可以指向子类对象,是安全的,开发中经常用到(继承方式必须是public)子类指针指向父类对象是不安全的#includeusingname
spaces
td;structPerson
get-yuan
·
2023-12-01 09:12
C++
算法
c++
数据结构
二叉树:顺序存储结构实现基本操作(C++)
代码实现如下:1.输入二叉树(采用先根遍历)和输出二叉树(采用层次遍历)2.找对应结点在数组中的存储位置3.寻找父母结点和孩子结点4.求树的高度(递归和非递归)和所有的叶子结点#includeusingname
spaces
td
Daxiuy
·
2023-12-01 08:17
数据结构和算法
数据结构
c++
11月30日作业
#includeusingname
spaces
td;structPer{private:stringname;intage;double*height;double*weight;public:Per(
Cloudy浊云
·
2023-12-01 08:30
C++
【算法题解】LeetCode169.多数元素——摩尔投票算法
示例1:输入:nums=[3,2,3]输出:3示例2:输入:nums=[2,2,1,1,1,2,2]输出:2提示:n==nums.length1usingname
spaces
td;intmajorityElement
gulugulu1103
·
2023-12-01 07:19
算法
数据结构
友元函数的声明
以上几条可见下例子:#includeusingname
spaces
td;classTestPoint{private:intx;inty;friendintdistanceOne();//友元的声明可以出现在类内任何地方
weixin_30908941
·
2023-12-01 07:17
2020-06-19数组乘积
#includeusingname
spaces
td;intmain(){constintm=3,k=2,n=4;inta[m][k]={1,2,3,4,5,6};intb[k][n]={1,0,1,1,0,1,0,1
fhsh
·
2023-12-01 05:25
C++ Day10 STL02-适配器与算法 (本篇笔记16000字,整理不易,拿去赶快干)
示例classMyPrint{public:voidoperator()(char*s){cout#include#includeusingname
spaces
td;classGreaterThan30
ZHANGα
·
2023-12-01 05:57
c++
算法
c++
开发语言
PAT 1045 快速排序 (25 分)
#include#include#includeinta[100000],b[100000],v[100000];usingname
spaces
td;intmain(){intn,max=0,cnt=0
昭明ZMing
·
2023-12-01 05:06
windows删除文件时需要管理员权限的方法
题目不记得了,文件命名是包子凑数#includeusingname
spaces
td;inlineintgcd(int
no_worning
·
2023-12-01 05:46
笔记
算法
c++
图论
2021-03-23 C++基础习题——循环专场
文章目录1.列出乘法口诀表2.求最大值3.判断素数4.数列求和5.西瓜卖几天6.成绩判定7.最大公约数1.列出乘法口诀表【示例代码】#includeusingname
spaces
td;intmain()
徐稞_
·
2023-12-01 04:45
c++
2022年3月青少年C/C++软件编程(二级)等级考试试卷及答案解析
(0usingname
spaces
td;inta[202];intmain(){intn,t,ans;cin>>n;for(inti=1;i>a[i];cin>>t;ans=0;for(inti=1;i
青少年等级考试周老师
·
2023-12-01 03:19
#
C/C++(1-2)级试题合集
c语言
c++
开发语言
电子学会C/C++编程等级考试2022年12月(三级)真题解析
时间限制:1000内存限制:65536输入一行,一个正整数a(ausingname
spaces
td;intmain(){intn;cin>>n;if(n%2==1)//jishuco
码农StayUp
·
2023-12-01 03:45
c++
算法
数据结构
青少年编程
等级考试
电子学会
电子学会C/C++编程等级考试2023年03月(三级)真题解析
时间限制:10000内存限制:65536输入共两行,第一行是数列中数的个数n(1#includeusingname
spaces
td;inta[105];intmain(){int
码农StayUp
·
2023-12-01 03:11
算法
c++
数据结构
青少年编程
等级考试
电子学会
TZOJ求先序排列
(约定树结点用不同的大写字母表示,长度usingname
spaces
td;typedeflonglongll;constintN=1e5+5;stringz,h;voidfind(intl1,intr1
Richadal
·
2023-12-01 03:58
c++
算法
开发语言
TZOJ 5101 A Game(区间DP)
描述Considerthefollowingtwo-playergameplayedwithasequenceofNpositiveintegers(22usingname
spaces
td;34intmain
weixin_30445169
·
2023-12-01 03:57
数据结构与算法
TZOJ A and B Problem
每组测试数据第一行为一个正整数n(nusingname
spaces
td;inta[105];boolvis[105],flog;intn;voiddfs(ints){if(fl
qzm777
·
2023-12-01 03:27
深度搜索+回溯
5845: A^B的约数和(因子和与因子个数
分解即把A看成上面的n因子和就是上面①处还有个B次方soB乘到a1那里即:注意要求逆元因为除数会过大会损精度(质数逆元就是质数-2,除一个数就是乘这个数的逆元)代码:#includeusingname
spaces
td
aqianchuo1301
·
2023-12-01 03:56
1006 换个格式输出整数
让我们用字母B来表示“百”、字母S表示“十”,用12...n来表示不为零的个位数字n(usingname
spaces
td;intmain(){intn;cin>>n;inthundred,ten,unit
初见还是重逢
·
2023-12-01 02:48
c++的vector容器的基本操作
#define_CRT_SECURE_NO_WARNINGS#include#include#includeusingname
spaces
td;voidprintvector(constvector&vec
落落落sss
·
2023-11-30 23:43
c++
算法
开发语言
c++的deque容器的基本操作
#define_CRT_SECURE_NO_WARNINGS#include#include#includeusingname
spaces
td;voidprintDeque(constdeque&d){
落落落sss
·
2023-11-30 23:43
c++
开发语言
上一页
114
115
116
117
118
119
120
121
下一页
按字母分类:
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
其他