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
Namespace
七段码--dfs+set去重/状压
1.dfs遍历i相连的边,从亮1个到7个遍历,然后最后答案用·二进制装进set里,set自动去重2.c表示现在亮的个数,d表示要求亮的个数,pos表现在是哪个点蓝桥账户中心#includeusing
namespace
std
泛舟起晶浪
·
2025-05-28 15:10
深度优先
算法
数据结构
C++类继承详解:权限控制与继承方式解析
基类定义:Vehiclecpp深色版本#includeusing
namespace
std;引入标准输入输出库,并使用命名空间std,避免每次写std::cout。
范纹杉好好生活工作
·
2025-05-28 09:53
开发语言
c++
算法
java
jvm
qt
数据结构实验之链表七:单链表中重复元素的删除
Input第一行输入元素个数n(1using
namespace
std;typedefstructnode{intdata;structnode*next;}s;intn,m,x,a,k=0;intmain
南山芽木
·
2025-05-28 04:17
题解
数据结构
链表
图论
谈&a+1 、&a[0]+1、&a,区别在哪里?
的意思是(&a)+1,是以a的长度为基准,在这里a代表的是整个数组的长度,假设我们定义了inta[4],int*p=(int*)(&a+1);那么p指向的地址就是a[4]的地址;若我们进行coutusing
namespace
std
不争先.
·
2025-05-28 04:14
算法
机试 | STL | string | 文字处理软件
题目:P5734【深基6.例6】文字处理软件-洛谷不使用库函数#include#include#includeusing
namespace
std;intmain(){intq;//第一行输入一个正整数q
_keep_doing
·
2025-05-28 00:51
c++
开发语言
机试 | vector/array Minimum Glutton C++
题目地址:C-MinimumGlutton#include#include#include#includeusing
namespace
std;intmain(){//N:菜肴数,X:总甜度阈值,Y:总咸度阈值
_keep_doing
·
2025-05-28 00:19
机试
c++
算法
数据结构
c++打ACM比赛的万能模板
赛制的比赛比较实用#include//c++的万能头文件,比赛时不用再单独写出库函数对应的头文件#defineintlonglong//将int自动转化为ll类型,不用单独考虑数值是否超出整数型范围using
namespace
std
marco@xs
·
2025-05-27 23:46
c++
开发语言
图论:深度优先遍历(DFS)与广度优先遍历(BFS)
死磕起来比别人难一点)DFS:题目描述请定一个无向图,顶点编号从0∼n−1用深度优先搜索(DFS)从0开始遍历并输出遍历时,先遍历节点编号小的输入格式输入第一行是两个整数k,m(0//万能库using
namespace
std
Oh,AC!
·
2025-05-27 20:46
算法
深度优先
图论
宽度优先
dfs
bfs
图搜索算法
图搜索
P2 C++基础(2.1)
我们新建一个QTCreator的C++工程,默认生成的代码如下:#includeusing
namespace
std;intmain(){cout
H212202165
·
2025-05-27 19:11
c++
开发语言
面向对象03(深拷贝、组合类、静态成员与对象高级操作)
2.深拷贝对于带指针的属性,需要重新开辟内存空间来存储示例:#includeusing
namespace
std;classStudent{private:intm_nNu
武昱347
·
2025-05-27 18:36
面向对象编程
c++
面向对象编程进阶
深拷贝
组合类
面向对象高级操作
静态成员
【C++篇】list模拟实现
个val构造、拷贝构造operator=重载实现迭代器push_back()push_front()erase()insert()头尾删#pragmaonce#include#includeusing
namespace
std
Rhzkp
·
2025-05-27 14:13
c++
开发语言
运维
linux
c语言
C++ map容器: 插入操作
插入元素时有四种主要方式,各有特点:1.1头文件与声明#includeusing
namespace
std;mapmapStu;//键为int,值为string2.四种插入方式详解2.1方式一:构造pair
苕皮蓝牙土豆
·
2025-05-27 06:22
C++
STL容器
c++
开发语言
数据结构-图结构转化为二叉树
不多bb先上代码首先声明这个图不是连通图,存在3个连通分支#includeusing
namespace
std;structTreeNode{intdata;structTreeNode*f;structTreeNode
安小二
·
2025-05-27 02:00
重要算法
图结构
二叉树
C++ string模拟实现
一如何区分自定义类与标准库中的同名类//string.h#define_CRT_SECURE_NO_WARNINGS1#pragmaonce#includeusing
namespace
std;
namespace
bit
POL.free
·
2025-05-27 01:23
C++
c++
C++ stack对象创建、入栈、获取栈顶
stack对象创建直接调用C++对应的,进行创建#include#includeusing
namespace
std;intmain(){//1默认构造函数stackstk1;//2拷贝构造函数stackstk2
qq_43355454
·
2025-05-26 22:39
c++
开发语言
算法
C++ deque随机访问、代码练习
deque随机访问,代码见下:#include#includeusing
namespace
std;voidprintDeque(deque&d){//for(deque::iteratoriter=d.begin
qq_43355454
·
2025-05-26 22:39
c++
开发语言
数据结构之排序
1.插入排序#includeusing
namespace
std;constintN=1e5=10;intn;inta[N];voidinsert_sort(){for(inti=2;i=1&&a[j]>
码了又码
·
2025-05-26 20:27
数据结构
C++
数据结构
排序算法
算法
指针实现链表的基本函数
#includeusing
namespace
std;typedefstructLNode{intdata;structLNode*next;}LNode,*LinkList;voidInit(LinkList
码了又码
·
2025-05-26 20:27
C++
数据结构
链表
数据结构
算法
c++
使用memset设置二维数组内容
#include#includeusing
namespace
std;intmain(){inta[10][10];memset(a,0,sizeof(a));//将二维数组每个字节都设置为0for(inti
码了又码
·
2025-05-26 20:26
C语言
C++
c++
算法
c语言
C++题解(33)2025年顺德区中小学生程序设计展示活动(初中组C++)U560876 美丽数(一)和 U560878 美丽数(二)题解
输入输出样例#1输入1234输出3569说明/提示保证:1using
namespace
std;intmain(){intn;while(cin>>
WebGoC开发者
·
2025-05-26 18:47
C++题解
c++
算法
青少年编程
入门
经验分享
while循环
P1042 [NOIP2003 普及组] 乒乓球
原题链接来自洛谷https://www.luogu.com.cn/problem/P1042#includeusing
namespace
std;intnum[100100][2]={0};intmain
jdklll
·
2025-05-26 11:37
c语言
08 P3392 涂条纹
题目:样例输入:45WRWRWBWRWBWRWRWRWBWR样例输出11代码:#includeusing
namespace
std;#defineM10005intans;charsa[50][50];intmin1
轶方
·
2025-05-26 02:08
#
【算法1-3】
暴力(或者搜索)
算法
c++
P1104 生日
P1104生日-洛谷#includeusing
namespace
std;intn;structss{strings;inty,m,d,id;}a[100];boolcmp(ssx,ssz){if(x.y
C++chaofan
·
2025-05-26 01:07
算法
c++
图论
P2676 [USACO07DEC] Bookshelf B
P2676[USACO07DEC]BookshelfB-洛谷#includeusing
namespace
std;intn,a[20005];longlongb,sum;intmain(){cin>>n>
C++chaofan
·
2025-05-26 01:07
算法
c++
数据结构
P2089 烤鸡
P2089烤鸡-洛谷#includeusing
namespace
std;intn,ans;intmain(){cin>>n;for(inta=1;a<=3;a++){for(intb=1;b<=3;b+
C++chaofan
·
2025-05-26 01:06
算法
c++
数据结构
c#使用forms实现屏幕截图
usingSystem;usingSystem.Drawing;usingSystem.Drawing.Imaging;usingSystem.IO;usingSystem.Windows.Forms;
namespace
WinFormsApp2
勘察加熊人
·
2025-05-25 23:49
typescript
c#
开发语言
poj1062
#includeusing
namespace
std;#defineSize102intINF=0x7FFFFFFF;intM,N;//intP[Size];//priceintL[Size];//levelintdis
熊猫钓鱼>_>
·
2025-05-25 23:49
poj
第十三届蓝桥杯国赛题解
题目连接:(7条消息)第十三届蓝桥杯真题_2301_76638646的博客-CSDN博客第一道题:电线上的小鸟:#include#includeusing
namespace
std;constintN=1007
2301_76638646
·
2025-05-25 04:39
蓝桥杯
职场和发展
算法
2020第一届大湾区信息学竞赛U12组第二场初赛真题参考答案
D7答案:A8答案:B9答案:C10答案:D二、填空题(每题8分,共40分)1答案:82答案:5:93答案:44答案:375答案:True三、程序完善题(每空2分,共20分)1#includeusing
namespace
std
海天一树
·
2025-05-25 04:07
广东比赛
算法
c++
数据结构
OpenCV入门(一)
第二章:OpenCV介绍(略)第三章:图像的基本操作3.1图像的表示创建一个3行2列,3通道,8位无符号整数类型,像素值初始化为(0,0,255)#include#include#includeusing
namespace
cv
dandanke0512
·
2025-05-25 00:13
OpenCV
opencv
PHP7内核剖析 学习笔记 第八章 命名空间
8.2命名空间的定义命名空间通过关键字
namespace
来声明://方式一//file:ns_define.php
namespace
com\aa;constMY_CONST=1234;functionmy_func
吃着火锅x唱着歌
·
2025-05-24 20:25
PHP7内核剖析
学习
笔记
android
C++---入门基础
includeintmain(){printf("hehe");return0;}2、c++自己的输出std相当于一个标准库,没有他不能使用cout(输出),endl(换行)①std展开#includeusing
namespace
std
零基础的修炼
·
2025-05-24 17:29
c++
C++:无序容器
undered_multimap:无序键可重undered_set:与set相比无序undered_multiset:与undered_set相比,元素可重复#include#includeusing
namespace
std
学习使我变快乐
·
2025-05-24 12:59
c++
算法
数据结构
一个简单的C++控制台小游戏
#include#include//for_kbhit()and_getch()#include//forSleep()using
namespace
std;constintwidth=50;//屏幕宽度
BABA8891
·
2025-05-24 04:28
c++
开发语言
c++三个数求最大值
#includeusing
namespace
std;intmain(){inta,b,c,max;cin>>a>>b>>c;max=a;if(b>max)max
永日45670
·
2025-05-24 03:24
C++习题
c++
c++数组的逆序存放
#includeusing
namespace
std;intmain(){intgiao(inta[],intn);inta[5];inti,j;for(i=0;i>a[i];giao(a,5);for(
永日45670
·
2025-05-24 03:24
C++习题
c++
几种能让你死的代码
#includeusing
namespace
std;intmain(){while(1){system("starthttps://florr.io");}}作用:一直打开游戏,
min_element
·
2025-05-23 20:04
c++
15.9:.NET的Azure Functions的监控和日志记录(课程共5500字,2段代码举例)
进行应用程序追踪——①使用ILogger接口进行日志记录usingMicrosoft.Azure.Functions.Worker;usingMicrosoft.Extensions.Logging;
namespace
MyFunctionApp
小兔子平安
·
2025-05-23 18:53
.NET完整学习全解答
.net
azure
microsoft
10:点云处理—QT显示点云
include#include#include#include////main.cpp//#include//#include//#include//#include//#include//using
namespace
QtDataVisualization
Echo``
·
2025-05-23 15:01
三维点云处理
qt
开发语言
人工智能
计算机视觉
视觉检测
算法
C#写INI文件
usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Runtime.InteropServices;
namespace
MotionCtrl
星河队长
·
2025-05-23 12:37
C#
ini
C++ list 查找
#include#include#includeusing
namespace
std;intmain(){listlist1;for(intk=0;k::iteratorlist_iter1;for(list_iter1
我不是程序员~~~~
·
2025-05-23 11:33
C&C++
c++
list
C++:template(函数模板)
基础使用在使用函数的过程中可能会遇到同一个函数名被多次调用的情况,比如#includeusing
namespace
std;voidSwap(int&i1,int&i2){inttmp;tmp=i1;i1
xun_xin666
·
2025-05-23 11:29
c++
C++:string
有关“容量”和“字符”的操作#includeusing
namespace
std;intmain(){stringmystring={"abcdefghijklmnopqrst"};//使用string每次分配都会多分出一些空间
xun_xin666
·
2025-05-23 11:59
c++
开发语言
C++模板进阶
#includeusing
namespace
std;
namespace
lwf{//定义一个模板类型的静态数组//此处N为非类型模板参数templateclassa
·前路漫漫亦灿灿
·
2025-05-23 06:28
c++
开发语言
关于大一上学期的程序设计(小学生出题系统)
源代码:#include#include#include#include//用于随机数的产生#includeusing
namespace
std;intmenu();//菜单intpractise();/
不争先.
·
2025-05-23 06:57
c++
算法
开发语言
C++:关联式容器map容器,multimap容器
特点概括:map:有序键不重multimap:有序键可重例如:#include#includeusing
namespace
学习使我变快乐
·
2025-05-23 06:56
c++
开发语言
C++:vector容器
使用方法和一些注意如下:#include#includeusing
namespace
std;intmain(){vectorvec={'a','b','c','d'};vec[4]='e';//不能以此方法扩容
学习使我变快乐
·
2025-05-23 06:55
c++
开发语言
⚡ Linux Debian 安装与配置 Docker
Docker利用了Linux的容器技术(
Namespace
s和Cgroups)来实现资源隔离,它相比传统虚拟机更轻量、更高效。
aitav0
·
2025-05-23 00:51
Linux玩家
linux
debian
docker
全面学习c++类与对象(中)(非常重要)(析构构造拷贝函数赋值运算符重载等等)
classDate{};构造函数给出如下类#includeusing
namespace
std;c
爱吃生蚝的于勒
·
2025-05-22 22:36
c++成长之路
学习
c++
java
数据结构
c语言
开发语言
linux
【次短路】
题目链接:洛谷:P2865[USACO06NOV]RoadblocksG-洛谷AC代码(dijkstra)#include#include#include#includeusing
namespace
std
cc,cccc
·
2025-05-22 21:03
c++
图搜索算法
上一页
6
7
8
9
10
11
12
13
下一页
按字母分类:
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
其他