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
蓝桥杯 map
map代码示例#include#includeusingname
spaces
td;intmain(){//创建并初始化mapmapmyMap={{1,"Apple"},{2,"Banana"},{3,"
暗托涅瓦
·
2023-11-18 20:45
蓝桥杯刷题
蓝桥杯
职场和发展
算法
c++
c语言
map
计算某个整数含有几位数
#includeusingname
spaces
td;intmain(){intn,c;cin>>n;c=log10(n)+1;cout<<c;}
小小曾爱读书
·
2023-11-18 20:09
C++基础代码
c++
交换两个变量的值
#includeusingname
spaces
td;intmain(){inta,b,t;cin>>a>>b;t=a;a=b;b=t;cout<<"a="<<
小小曾爱读书
·
2023-11-18 19:49
C++基础代码
c++
算法
开发语言
C语言遍历n维数组,C++ for循环 纯指针遍历多维数组
以二维数组的访问为例,直接给出代码:#includeusingname
spaces
td;intmain(){intia[3][4]={};/*errorcodesfor(int**p1=ia;p1!
weixin_39710966
·
2023-11-17 18:38
C语言遍历n维数组
有理数四则运算c语言结构体,C++实现有理数运算类(具有四则运算、输出等功能)...
#includeusingname
spaces
td;/**\brief取最小公倍数**\paramaint*\parambint*\returnint,2个参数的最小公倍数*/intGetLcm(inta
weixin_39628380
·
2023-11-17 18:08
有理数四则运算c语言结构体
c++中二维数组的几种遍历方法
1.使用for语句输出多维数组的内容#includeusingname
spaces
td;intmain(){inta[][4]={1,2,3,4,5,6,7,8,9,10,11,12};for(int(
five_east_west
·
2023-11-17 18:30
c++基础
c++
C++分数类(有理数类)重载四则运算、比较逻辑运算
=、>=、>、=、>、#includeusingname
spaces
td;classRational{public:Rational(intnum=1,intdenomi=1){//构造函数,带默认参数
马克7758
·
2023-11-17 18:29
C++
c++
面向对象
面向对象编程
1034 有理数四则运算 (20 分)(C++)
#include#include#includeusingname
spaces
td;longlonga,b,c,d;//求最大公约数的子函数(辗转相除法)longlonggcd(longlongm,longlongn
BatmannLv
·
2023-11-17 18:58
数据结构
PAT
算法
数据结构
c++
AtCoder Beginner Contest 224题解 A-G
直接做即可#includeusingname
spaces
td;intmain(){strings;cin>
无码萌妹码代码
·
2023-11-17 18:48
夜深人静写算法
another
oj
1024程序员节
k8s pod常用运维命令
2.查看name
spaces
查看k8s集群中目前存在的name
spaces
kubectlgetname
spaces
输入如下3.查看pods3.1查看所有的pods列表查看k8s集群中所有的podskubectlget
牛角上的男孩
·
2023-11-17 18:06
kubernetes
运维
docker
01序列 卡特兰数
快速幂://01序列卡特兰数#includeusingname
spaces
td;usingll=longlong;constll
想不出来_6
·
2023-11-17 17:37
算法
求组合数(笔记)
#includeusingname
spaces
td;usingll=longlong;constllN=1e4+9,mod=1e9+7;llfact[N],infact[N];//阶乘,逆元阶乘llqmi
想不出来_6
·
2023-11-17 17:07
笔记
c++
算法
Eigen的配置和使用(GAMES101-0作业)
VSSTIDO配置Eigen库配置教程Eigen库的使用Eigen库基础使用手册GAMES101-0作业 C++代码如下:#include#include#include#includeusingname
spaces
td
仰望—星空
·
2023-11-17 16:31
GAMES101
计算机图形学
GAMES101
CG
Eigen
转一篇很牛的文章,说明string、char和char*、char**等的使用
#includeusingname
spaces
td;voidmain(){//第一种初始化方法char**p=newchar*[10];//赋值后正常使用p[0]="aaa";cout.
piankejingmo
·
2023-11-17 16:53
软件质量保护与测试(第2版)学习总结第十章 黑盒测试
---TsuneoYamaura1、黑盒测试是对程序接口的测试2、黑盒测试注重于测试软件的功能性需求3、黑盒测试不需要了解程序源代码10.1等价类划分#includeusingname
spaces
td;
村口曹大爷
·
2023-11-17 12:45
学习
【C++二级】题一:构造函数
1、常量数据成员的初始化只能通过构造函数的成员初始化列表进行,并且要用关键字const修饰#includeusingname
spaces
td;classMyClass{int_i;friendvoidIncrement
莓果兰竹
·
2023-11-17 11:43
c++
开发语言
C++ 约瑟夫环(数组)
【输入形式】输入为三个正整数n和m和k,空格分隔,分别代表编号长度和间隔长度和起始位置,编号长度n#includeusingname
spaces
td;classJoseph{public:Jose
牧童深巷
·
2023-11-17 10:51
C++
c++
开发语言
算法
黑马程序员匠心之作|C++教程从0到1入门编程(基础)
1C++初识1.1第一个C++程序编写一个C++程序总共分为4个步骤:创建项目创建文件编写代码运行程序1.1.1C++程序通用模块#includeusingname
spaces
td;intmain(){
UncleLPG
·
2023-11-17 09:37
编程语言
c++
C++基础从0到1入门编程(一)
C++教程从0到1入门编程,学习编程不再难1第一个C程序-HelloWorld编写一个C++程序分为四个步骤:(1)创建项目(2)创建文件(3)编写代码(4)运行程序#includeusingname
spaces
td
Big David
·
2023-11-17 09:19
C++
c++
学习
linux
D-阿强与网格
题目链接:阿强与网络思路:数学模拟;详情请看代码:代码:#include#includeusingname
spaces
td;typedeflonglongLL;intmain(){intt;scanf(
ros275229
·
2023-11-17 07:25
算法学习
NowCoder
算法
2021年12月青少年C/C++软件编程(五级)等级考试试卷及答案解析
书架高度为B(1≤B≤S#include#include#include#include#defineINF999999999#defineN20001usingname
spaces
td;
青少年等级考试周老师
·
2023-11-17 07:25
#
C/C++(5-6)级试题合集
c++
c语言
算法
C/C++输出整数部分 2021年12月电子学会青少年软件编程(C/C++)等级考试一级真题答案解析
2、输入输出输入描述:只有一行,一个双精度浮点数f(0usingname
spaces
td;intmain(){doublef;cin>>f;co
小兔子编程
·
2023-11-17 07:51
C++编程
c++考级真题
c++一级真题
c++考级一级真题
c++一级解析
c++输出整数部分
小兔子编程c++
编程求1+3+5+...+n
题目描述编程求1+3+5+…+n输入输入一行,只有一个整数n(1usingname
spaces
td;inta,b;intmain(){cin>>a;for(inti=1;i<=a;i+
于楷力——一个成绩优异的男同学……
·
2023-11-17 03:37
计算
循环
c++
编程求1平方+2平方+...+n平方
题目描述编程求1平方+2平方+…+n平方输入输入一行,只有一个整数n(1usingname
spaces
td;inta,b;floatc;intmain(){
于楷力——一个成绩优异的男同学……
·
2023-11-17 03:37
计算
循环
c++
PTA 7-1 删除字符串中的子串 (20分)
#include#includeusingname
spaces
td;intmain(){strings1,s2;getline(cin,s1);getline(cin,s2);intindex=s1.find
cqggcqggcqggcqgg
·
2023-11-17 02:25
数据结构
c++
C++ std::async()函数的使用
packaged_task()模板类、std::promise()模板类的使用*@notice:*/#include#include#include#include#include#includeusingname
spaces
td
qq_35536179
·
2023-11-17 01:33
C++
c++
多线程
c++ std::swap() 函数
比如如下代码:#include#includeusingname
spaces
td;templateOs&operatora{1,2,3,4,5};vectorb{9,8,7};coutintmain()
qq_30694087
·
2023-11-17 01:02
swap
c++
c++
C++ std::bind函数
#include#includeusingname
spaces
t
L7256
·
2023-11-17 01:59
C/C++
C++11
std::ref函数
首先我们先来写一个以类对象为参数的线程的创建,先来看一下下面的这个代码:#include#includeusingname
spaces
td;classA{public:intm_iX;A(intx):m_iX
Ch_zaqdt
·
2023-11-17 01:28
C++多线程
多线程
C++ 给vector去重的三种方法
第一正种方法是简单的利用set的特性,这部分代码比较简单,直接上code:#include#include#includeusingname
spaces
td;intmain(){intmyints[]=
_123杨子江
·
2023-11-16 23:40
C++
vector的初始化(5种不同方式)
#include#includeusingname
spaces
td;intmain(){ //Createanemptyvector vectorvect; vect.push_back
布莱克瑞文
·
2023-11-16 23:32
c++
数据结构
leetcode
poj.org 部分题目答案
1000#includeusingname
spaces
td;intmain(){inta,b;cin>>a>>b;coutconstdoublepi=3.14;usingname
spaces
td;intmain
wniuniu_
·
2023-11-16 20:21
算法
算法
二叉树非递归遍历法
二叉树的结构声明:#include#include#includeusingname
spaces
td;typedefstructnode{chardata;structnode*lchild;structnode
Transcendencer
·
2023-11-16 19:20
数据结构
C++
数据结构
二叉树
遍历
结构
第20题:要制作所有的 1 到 4040 号门牌,总共需要多少个字符2
解题思路:由于是要算字符2,所以可把一个数拆分为个位数、十位数、百位数、千位数,如果这些数字当中有等于2的,那么sum加1.源代码:#include#includeusingname
spaces
td;intmain
m0_58189798
·
2023-11-16 19:34
算法
c++
C++下OpenCV学习笔记----OpenCV的输出方法
randu()函数产生的随机值填充矩阵:randu(矩阵,随机值的下限,随机值的上限);OpenCV默认风格1>代码实现#include#includeusingnamespacecv;usingname
spaces
td
X to Y
·
2023-11-16 17:14
opencv
c++
数据结构
opencv
Visual Studio Code配置c/c++环境
.配置编译器6.配置构建任务7.配置调试设置1.创建项目目录d:\>mkdird:\c语言项目\test012.vscode打开项目目录3.项目中添加文件4.文件内容#includeusingname
spaces
td
Jacky-008
·
2023-11-16 13:34
vscode
c语言
c++
IEEE-754标准(32位)十六进制与十进制浮点数之间的相互转换
IEEE-754标准(32位)十六进制转十进制浮点数#include#include#include#includeusingname
spaces
td;doubleBtoD(stringx){doubleans
C++有点难
·
2023-11-16 13:55
其他
Gazebo 从 Ignition 迁移指南
系列文章目录文章目录系列文章目录前言一、概览1.1变化1.2Tick-tocksandHard-tocks1.3Tick-tocks1.3.1Name
spaces
(命名空间)1.3.2Source(源文件
kuan_li_lyg
·
2023-11-16 10:24
GAZEBO
机器人
自动驾驶
ROS
ROS2
Gazebo
stm32
机器人仿真
学习day1 c++
使用函数重载,实现不同数据类型的交换#includeusingname
spaces
td;voidadd(int*a,int*b){intc;c=*a;*a=*b;*b=c;}voidadd(double
托尼科斯坦--王
·
2023-11-16 09:07
c++
学习
算法
day4作业
#includeusingname
spaces
td;classPer{friendclassStu;private:stringname;intage;int*hig;int*wig;public:Per
托尼科斯坦--王
·
2023-11-16 09:07
c++
开发语言
c++day6
#includeusingname
spaces
td;classAnimal{public:virtualvoidpeform()=0;};classMonekey:publicAnimal{public
托尼科斯坦--王
·
2023-11-16 09:07
c++
开发语言
qtday2
#include"widget.h"#include"ui_widget.h"usingname
spaces
td;Widget::Widget(QWidget*parent):QWidget(parent
托尼科斯坦--王
·
2023-11-16 09:07
命令模式
ACwing 第三章 搜索与图论
一、DFSDFS中有两个重要的概念:回溯和剪枝当图中所有边的权重为1时,BFS搜到的一定是最短路回溯时一定要注意恢复现场排列数字#includeusingname
spaces
td;constintN=10
安河桥北i
·
2023-11-16 08:25
算法基础课
数据结构
算法
c++
#AcWing:搜索与图论系列
2.1走迷宫从左上角走到右下角最短路径长度#includeusingname
spaces
td;typedefpairPII;constintN=110;intg[N][N],d[N][N];intn,m
fff_421
·
2023-11-16 08:23
leetcode
&
AcWing
算法
bfs
tarjan求关键连接java,Tarjan算法与割点割边(示例代码)
%d%d",&n,&m);memset(head,-1,sizeof(head));tot=0;for(inti=1;i>1;看代码:#include#include#includeusingname
spaces
td
weixin_39786850
·
2023-11-16 08:04
tarjan求关键连接java
C++:通过accumulate连接字符串
templateTypeaccumulate(InputIteratorfirst,InputIteratorlast,Typeinit//初始值);#include#include#includeusingname
spaces
td
风静如云
·
2023-11-16 07:42
C/C++
c++
开发语言
火烧赤壁——离散化、差分
思路n条信息,每条信息有两个数据1#include#include#includeusingname
spaces
td;typedefpairPII;intn;vectorans;//ans数组表示存储原数据
送你一颗星星
·
2023-11-16 06:06
算法
c++
数据结构
程序自动分析——并查集、离散化
题目描述思路数据量n>1;if(a[mid]#include#include#includeusingname
spaces
td;constintN=1e5+10;intt,n;vectora,book;
送你一颗星星
·
2023-11-16 06:06
算法
c++
蓝桥杯青少年创意编程大赛题解:数字组合
题目描述用户输入一个正整数N(3usingname
spaces
td;intmain(){intn,ans=0;cin>>n;//枚举百位for(inti=1;i<=n;i++){//枚举十位for(intj
少儿编程乔老师
·
2023-11-16 06:57
蓝桥杯青少年创意编程
洛谷 P3378 【模板】堆
define_CRT_SECURE_NO_WARNINGS1#include#include//队列头文件#include//动态数组头文件#include//functional头文件usingname
spaces
td
枫叶丹4
·
2023-11-16 05:40
c++
上一页
133
134
135
136
137
138
139
140
下一页
按字母分类:
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
其他