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
namespaces
C++ stack对象创建、入栈、获取栈顶
stack对象创建直接调用C++对应的,进行创建#include#includeusing
namespaces
td;intmain(){//1默认构造函数stackstk1;//2拷贝构造函数stackstk2
qq_43355454
·
2025-05-26 22:39
c++
开发语言
算法
C++ deque随机访问、代码练习
deque随机访问,代码见下:#include#includeusing
namespaces
td;voidprintDeque(deque&d){//for(deque::iteratoriter=d.begin
qq_43355454
·
2025-05-26 22:39
c++
开发语言
数据结构之排序
1.插入排序#includeusing
namespaces
td;constintN=1e5=10;intn;inta[N];voidinsert_sort(){for(inti=2;i=1&&a[j]>
码了又码
·
2025-05-26 20:27
数据结构
C++
数据结构
排序算法
算法
指针实现链表的基本函数
#includeusing
namespaces
td;typedefstructLNode{intdata;structLNode*next;}LNode,*LinkList;voidInit(LinkList
码了又码
·
2025-05-26 20:27
C++
数据结构
链表
数据结构
算法
c++
使用memset设置二维数组内容
#include#includeusing
namespaces
td;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
namespaces
td;intmain(){intn;while(cin>>
WebGoC开发者
·
2025-05-26 18:47
C++题解
c++
算法
青少年编程
入门
经验分享
while循环
P1042 [NOIP2003 普及组] 乒乓球
原题链接来自洛谷https://www.luogu.com.cn/problem/P1042#includeusing
namespaces
td;intnum[100100][2]={0};intmain
jdklll
·
2025-05-26 11:37
c语言
08 P3392 涂条纹
题目:样例输入:45WRWRWBWRWBWRWRWRWBWR样例输出11代码:#includeusing
namespaces
td;#defineM10005intans;charsa[50][50];intmin1
轶方
·
2025-05-26 02:08
#
【算法1-3】
暴力(或者搜索)
算法
c++
P1104 生日
P1104生日-洛谷#includeusing
namespaces
td;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
namespaces
td;intn,a[20005];longlongb,sum;intmain(){cin>>n>
C++chaofan
·
2025-05-26 01:07
算法
c++
数据结构
P2089 烤鸡
P2089烤鸡-洛谷#includeusing
namespaces
td;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++
数据结构
poj1062
#includeusing
namespaces
td;#defineSize102intINF=0x7FFFFFFF;intM,N;//intP[Size];//priceintL[Size];//levelintdis
熊猫钓鱼>_>
·
2025-05-25 23:49
poj
第十三届蓝桥杯国赛题解
题目连接:(7条消息)第十三届蓝桥杯真题_2301_76638646的博客-CSDN博客第一道题:电线上的小鸟:#include#includeusing
namespaces
td;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
namespaces
td
海天一树
·
2025-05-25 04:07
广东比赛
算法
c++
数据结构
OpenCV入门(一)
图像的基本操作3.1图像的表示创建一个3行2列,3通道,8位无符号整数类型,像素值初始化为(0,0,255)#include#include#includeusingnamespacecv;using
namespaces
td
dandanke0512
·
2025-05-25 00:13
OpenCV
opencv
C++---入门基础
includeintmain(){printf("hehe");return0;}2、c++自己的输出std相当于一个标准库,没有他不能使用cout(输出),endl(换行)①std展开#includeusing
namespaces
td
零基础的修炼
·
2025-05-24 17:29
c++
C++:无序容器
undered_multimap:无序键可重undered_set:与set相比无序undered_multiset:与undered_set相比,元素可重复#include#includeusing
namespaces
td
学习使我变快乐
·
2025-05-24 12:59
c++
算法
数据结构
一个简单的C++控制台小游戏
#include#include//for_kbhit()and_getch()#include//forSleep()using
namespaces
td;constintwidth=50;//屏幕宽度
BABA8891
·
2025-05-24 04:28
c++
开发语言
c++三个数求最大值
#includeusing
namespaces
td;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
namespaces
td;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
namespaces
td;intmain(){while(1){system("starthttps://florr.io");}}作用:一直打开游戏,
min_element
·
2025-05-23 20:04
c++
C++ list 查找
#include#include#includeusing
namespaces
td;intmain(){listlist1;for(intk=0;k::iteratorlist_iter1;for(list_iter1
我不是程序员~~~~
·
2025-05-23 11:33
C&C++
c++
list
C++:template(函数模板)
基础使用在使用函数的过程中可能会遇到同一个函数名被多次调用的情况,比如#includeusing
namespaces
td;voidSwap(int&i1,int&i2){inttmp;tmp=i1;i1
xun_xin666
·
2025-05-23 11:29
c++
C++:string
有关“容量”和“字符”的操作#includeusing
namespaces
td;intmain(){stringmystring={"abcdefghijklmnopqrst"};//使用string每次分配都会多分出一些空间
xun_xin666
·
2025-05-23 11:59
c++
开发语言
C++模板进阶
#includeusing
namespaces
td;namespacelwf{//定义一个模板类型的静态数组//此处N为非类型模板参数templateclassa
·前路漫漫亦灿灿
·
2025-05-23 06:28
c++
开发语言
关于大一上学期的程序设计(小学生出题系统)
源代码:#include#include#include#include//用于随机数的产生#includeusing
namespaces
td;intmenu();//菜单intpractise();/
不争先.
·
2025-05-23 06:57
c++
算法
开发语言
C++:vector容器
使用方法和一些注意如下:#include#includeusing
namespaces
td;intmain(){vectorvec={'a','b','c','d'};vec[4]='e';//不能以此方法扩容
学习使我变快乐
·
2025-05-23 06:55
c++
开发语言
⚡ Linux Debian 安装与配置 Docker
Docker利用了Linux的容器技术(
Namespaces
和Cgroups)来实现资源隔离,它相比传统虚拟机更轻量、更高效。
aitav0
·
2025-05-23 00:51
Linux玩家
linux
debian
docker
全面学习c++类与对象(中)(非常重要)(析构构造拷贝函数赋值运算符重载等等)
classDate{};构造函数给出如下类#includeusing
namespaces
td;c
爱吃生蚝的于勒
·
2025-05-22 22:36
c++成长之路
学习
c++
java
数据结构
c语言
开发语言
linux
【次短路】
题目链接:洛谷:P2865[USACO06NOV]RoadblocksG-洛谷AC代码(dijkstra)#include#include#include#includeusing
namespaces
td
cc,cccc
·
2025-05-22 21:03
c++
图搜索算法
【基础】三角形的个数
#includeusing
namespaces
td;intmain(){intl;cin>>l;intk;intsum=0;for(inti=1;ik&&abs(i-j)=j){sum++;}}}coutusing
namespaces
td
摄殓永恒
·
2025-05-22 20:28
算法
c++
数据结构
C++获取程序内存占用
C++获取程序内存占用windows中获取内存占用#include#include#pragmacomment(lib,"psapi.lib")#include#includeusing
namespaces
td
烨然若神人~
·
2025-05-22 16:06
c++
windows使用
运维
c++
开发语言
编程日志5.15
哈希表的基础算法#includeusing
namespaces
td;//哈希表结点类定义//这段代码定义了一个名为HashNode的模板类,用于哈希表中的结点,其中每个结点存储一个键值对。
牛牛程序员成长日记
·
2025-05-22 14:54
哈希算法
算法
c++
弹弹乐c++小游戏
#include#include#include#include#includeusing
namespaces
td;constdoublepi=3.1415926536;inttoint(floata)
爱玩火影的村里人
·
2025-05-22 12:38
c
AtCoder Beginner Contest 354(ABC 354) A-F题解
LISLISLIS板子题比赛链接A.A.A.传送门题意:code:code:code:#include#include#include#include#include#defineintlonglongusing
namespaces
td
QianK.
·
2025-05-22 08:43
ABC
算法
数据结构
AT_abc354_a [ABC354A] Exponential Plant 题解
A题还是简单的代码#include#defineintlonglongusing
namespaces
td;intn,day=1,num=1;signedmain(){cin>>n;while
lhschris
·
2025-05-22 08:42
题解
AT_abc354_b [ABC354B] AtCoder Janken 2 题解
代码#include#defineintlonglongusing
namespaces
td;constintN=1e5+140;intn;stringa[N];intnum;boolcmp(stringx
lhschris
·
2025-05-22 08:42
算法
题解
[ABC354D] AtCoder Wallpaper
[题目通道]([ABC354D]AtCoderWallpaper-洛谷)简单大模拟#includeusing
namespaces
td;#defineintlonglonginta,b,c,d;intarea
「已注销」
·
2025-05-22 08:39
c++
算法
数据结构
再探记忆化(深度解析)——洛谷P1434
1.代码#includeusing
namespaces
td;intm,n,ans,a[110][110],s[110][110];intdfs(intx,inty){intk;inttx,ty;intnext
空雲.
·
2025-05-22 08:39
算法
深度优先
图论
C++基础,删除指定文件夹以及文件夹下的所有文件
/*删除指定目录以及目录下的所有文件*/#include#include#includeusing
namespaces
td;voidlistFiles(stringdir);intmain(){//目录路径
273992029
·
2025-05-22 02:30
c++
开发语言
黑马程序员C++2024新版笔记 第4章 函数和结构体
intage;stringgender;}结构体的声明定义和使用的基本语法:struct结构体类型{成员1类型成员1名称;···成员n类型成员n名称;};结构体定义和访问成员练习:#includeusing
namespaces
td
小葡萄2025
·
2025-05-21 21:53
c++20
笔记
P1208 [USACO1.3] 混合牛奶 Mixing Milk
#includeusing
namespaces
td;intn,m;longlongsum;structss{intx;inty;}a[5005];boolcmp(ssa,ssb){if(a.x!
C++chaofan
·
2025-05-21 14:14
算法
c++
数据结构
数据结构测试模拟题(1)
1、约瑟夫问题#includeusing
namespaces
td;constintN=25;inte[N],ne[N],head=-1,idx=1;intn,m;voidadd_to_head(intx
@我漫长的孤独流浪
·
2025-05-21 12:25
算法
c++
数据结构
c++中for_each用法简单概述
vector容器中for_each遍历算法:for_each(v.begin(),v.end(),MyPrint);voidMyPrint(intval){cout#include#includeusing
namespaces
td
kaiaaaa
·
2025-05-21 11:46
c++
梦熊解析:202505基础算法
示例:若n=5,答案为14若n=8,答案为44Code:#includeusing
namespaces
td;#definesc(x)sca
C-DHEnry
·
2025-05-21 06:49
算法
图论
蓝桥杯——最小字符串
样例输入13abc样例输出abc数据规模和约定Tusing
namespaces
td;boolcmp(strings1,str
JessieXu.
·
2025-05-21 03:01
蓝桥杯C++题解
蓝桥杯
算法
c++
蓝桥杯—算法提高—最小字符串
因为贪心还没遇到过,所以参考了一下别人的代码:#include#include#include#includeusing
namespaces
td;boolcmp(stringa,stringb){strin
追求决定高度
·
2025-05-21 03:00
算法
c++
数据结构
2024蓝桥杯国赛C++B组题解(9/10)
注意到数据范围为n#includeusing
namespaces
t
不要徘徊不前
·
2025-05-21 03:59
算法
蓝桥杯
算法回溯法-0-1背包c++
//思路差异://解为子集树:maxvule,则可以进入由结点////#include#includeusing
namespaces
td;classKnap{public:voidBacktrack(inti
王安安的记录
·
2025-05-20 22:51
回溯法
算法
c++
算法
C++回溯法求0-1背包问题
#include#include#defineN4using
namespaces
td;intc=7,w[N+1]={0,3,5,2,1},p
爱编程的小威
·
2025-05-20 21:51
蓝桥杯
c++
数据结构
上一页
2
3
4
5
6
7
8
9
下一页
按字母分类:
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
其他