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++ IPv4与IPv6 socket 编程
Server:#include#include#include#include#include#include#include#include#include#include#includeusing
namespaces
td
老陕西
·
2024-02-02 08:52
设计模式第一天|单例模式 1.小明的购物车
设计模式专题之单例模式】1.小明的购物车【设计模式专题之单例模式】1.小明的购物车文章链接:卡码网设计模式题目链接:1.小明的购物车单例模式:#include#include#includeusing
namespaces
td
啊就赵得柱
·
2024-02-02 07:17
设计模式
单例模式
2024.2.1 寒假训练记录(15)
CF1921DVeryDifferentArrayCF1921FSumofProgressionCF1921DVeryDifferentArray题目链接贪心真是越菜越爱啊,天天贪假可以想到把大的分给小的,小的分给大的,推广一下就是枚举有多少分给小的有多少分给大的#includeusing
namespaces
td
Texcavator
·
2024-02-02 04:56
2024寒假训练记录
算法
备战蓝桥杯---数据结构与STL应用(进阶1)
让我们先来看一看map的基础应用吧:下面是实现代码:#includeusing
namespaces
td;typedefmap>line;map>mx;map>my;intn,m;intdeal(line
cocoack
·
2024-02-02 03:03
数据结构
c++
算法
蓝桥杯
备战蓝桥杯---数据结构与STL应用(进阶2)
本文将主要围绕有关map的今典应用展开:下面我用图进行分析:下面为AC代码:#includeusing
namespaces
td;structPoint{intx,y;booloperatorS;intmain
cocoack
·
2024-02-02 03:32
蓝桥杯
数据结构
c++
算法
VS下数组越界导致程序异常崩溃的三种情况
下由于数组越界导致程序异常甚至崩溃的情况:1.超速行驶被交警拦下(Stackaroundthevariable'array'wascorrupted.)实例代码如下:#include#includeusing
namespaces
td
脑袋一直转
·
2024-02-02 02:04
C++ 中关键字delete用法
文章目录代码如下:#include#includeusing
namespaces
td;classStudent{public:Student(){};Student(constStudent&)=delete
scx_link
·
2024-02-02 02:48
C
and
C++的笔记
c++
开发语言
学习总结9
(1using
namespaces
td;structss{charc;structss*l;structss*r;}g;charj[50][3];intn;structss*chu(charc)//建立树
GGJJM
·
2024-02-02 01:45
学习
算法
C++14:通过make_index_sequence实现将vector转换为tuple
#include#include#includeusing
namespaces
td;templateautov2t(constauto&v,index_sequence){returnmake_tuple
风静如云
·
2024-02-02 01:45
C/C++
c++
C++(20):通过concept及nlohmann将数据转换为字符串
甚至自定义类型也不需要太复杂的操作就可以转换为json,可以利用这一点将数据转换为string:#include#include#include#include#include#includeusing
namespaces
td
风静如云
·
2024-02-02 01:44
C/C++
c++
C++中int&使用
#includeusing
namespaces
td;voidswap(int&a,int&b)//voidswap(inta,intb),如果这样写则不能实现交换两个数的目的的。
可即
·
2024-02-02 00:30
C++
c++
c语言
每日牛客一解
1,2,3,⋯ 定义两棵树u,v的距离为|u-v|,你想知道有多少棵树u,满足它到所有树的最远距离最小输入描述:第一行一个整数n输出描述:一行一个整数表示答案示例1输入1输出1#includeusing
namespaces
td
沉月照归人
·
2024-02-02 00:36
牛客
c++
算法
c++
数据结构
[C++]继承(续)
#include#includeusing
namespaces
td;classperson{public:voidprint(){cout#includeusing
namespaces
td;c
杯酒问苍天
·
2024-02-02 00:05
C++
c++
开发语言
算法
[C++]初识继承
例:#include#includeusing
namespaces
td;classperson{p
杯酒问苍天
·
2024-02-02 00:35
C++
c++
开发语言
【C++】常用到的“using namespace std;”到底是什么?
一、引言在初学C++时,在包含完头文件之后,我们常常会看到这么一句话:using
namespaces
td;比如:#includeusing
namespaces
td;intmain(){coutusing
namespaces
td
杯酒问苍天
·
2024-02-02 00:34
C++
c++
算法
开发语言
关于我用AI编写了一个聊天机器人……(6)
此次更新为1.3.3版本,优化代码(其实就是加了using
namespaces
td;再去掉代码里的std::)。
gfdhy
·
2024-02-02 00:28
人工智能
c++
机器人
关于我用AI编写了一个聊天机器人……(8)
代码如下:#include#includeusing
namespaces
td;stringuserInput;classVirtualRobot{public:voidchat(){cout<<"你好!
gfdhy
·
2024-02-02 00:28
c++
人工智能
机器人
关于我用AI编写了一个聊天机器人……(7)
此次更新为v1.3.4版本,更新内容:增加显示时间功能代码如下:#include#includeusing
namespaces
td;stringuserInput;classVirtualRobot{public
gfdhy
·
2024-02-02 00:57
机器人
c++
算法
回形矩阵-简单思路
#includeusing
namespaces
td;inta[1005][1005];intmain(){intn,m,x,y;cin>>n>>m;cin>>x>>y;intnum=1;intu=0,d
fchampion
·
2024-02-01 23:49
矩阵
算法
c++
36进制--蓝桥
#include#includeusing
namespaces
td;intmain(){longlongans=0;stringr="MANY";for(inti=0;i<r.length();i
fchampion
·
2024-02-01 23:49
c++
算法
开发语言
C++入门学习(二十)与或非
#include#includeusing
namespaces
td;intmain(){inta=10;intb=0;cout<<"a&&b:"<<(a&&b)<
执沐
·
2024-02-01 22:40
学习
C++入门学习(二十一)选择结构-if语句
#include#includeusing
namespaces
td;intmain(){inta;cout>a;if(a>=18){cout#includeusing
namespaces
td;intmain
执沐
·
2024-02-01 22:40
C++入门
c++
学习
开发语言
Modern C++ std::tuple的size
#include#includeusing
namespaces
td;structEmpty{constexprEmpty()noexcept=default;};intmain(){std::co
深山老宅
·
2024-02-01 22:49
modern
C++
c++
开发语言
modern
c++
tuple
将数组进行划分,并求两个数组最大值之间的差值
很容易想到用预处理数组,分别计算从左到右所记录的当前最大值和从右到左所记录的当前最大值然后再进行遍历,计算两者差值的最大值代码:#include#include#includeusing
namespaces
td
Longlongaaago
·
2024-02-01 21:54
基础算法
#
牛客竞赛
算法
C++简单的递归案例
#includeusing
namespaces
td;intmain(){intf(intx);intn;cout>n;cout9){f(x/10);#标记为(1)cout<
808bass542
·
2024-02-01 19:22
c++
算法
开发语言
C++韩信点兵
输入包含多组数据,每组数据包含3个整数a,b,c,表示每种队形排尾的人数(ausing
namespaces
td;intmain(void){intj,a,b,c;for(j=1;cin>>a>>b>>c
808bass542
·
2024-02-01 19:52
算法
c++
AcWing 1170. 排队布局 题解(spfa求负环解决约束差分)
AcWing1170.排队布局这里要注意求的是最大值,所以要用最短路,建图的时候也是从大于号指向小于号大佬题解#includeusing
namespaces
td;constintN=1010,M=3e4
QingQingDE23
·
2024-02-01 19:15
#
负环
图论
图论
算法
spfa处理差分约束
(a)=b且b>=ax==2说明b>a则b>=a+1x==3说明a>=bx==4说明a>b则a>=b+1x==5说明b>=a因为保证每个小孩都有一个糖果,则每个小孩>=0+1#includeusing
namespaces
td
钊气蓬勃.
·
2024-02-01 19:14
c++
算法
蓝桥杯
循环——枚举算法(c++)(进到3级啦!)
目录#includeusing
namespaces
td;intmain(){intn;cin>>n;intma=-99999;for(inta1=0;a1using
namespaces
td;intmain
mmz1207
·
2024-02-01 19:14
c++
算法
差分约束系统:排队布局
题目https://loj.ac/problem/10090#include#defineinf0x3f3f3f3fusing
namespaces
td;longlongn,l,d,k,x,a,b;structnode
ankuwu5570
·
2024-02-01 19:43
循环——枚举算法2(c++)
目录找和为K的两个元素描述在一个长度为n(nusing
namespaces
td;intmain(){intn,k;cin>>n>>k;inta[1010];for(inti=0;i>a[i];}for(
mmz1207
·
2024-02-01 19:09
c++
开发语言
1-100-100/1
#include#include#includeusing
namespaces
td;#defineMAX10intmain(intargc,char**agrv){//char*fgets(char*str
式飞噶罗密欧
·
2024-02-01 19:57
随笔
随心编
c++
算法
开发语言
倒计时69天
题单详情-蓝桥云课动态规划:1.1.健身-蓝桥云课(lanqiao.cn)//完全背包问题#includeusing
namespaces
td;#defineintlonglongconstintinf=
算法怎么那么难啊
·
2024-02-01 18:13
c++
倒计时67天
#includeusing
namespaces
td;#defineintlonglongconstintN=3e4+5;constintinf=0x3f3f3f3f;intmonth[13]={0,31,28,31,30,31,30,31,31,30,31,30,31
算法怎么那么难啊
·
2024-02-01 18:13
c++
倒计时68天
E-小红构造数组_牛客周赛Round29(nowcoder.com)#includeusing
namespaces
td;#defineintlonglongconstintN=3e4+5;constintinf
算法怎么那么难啊
·
2024-02-01 18:41
c++
SPOJ-1811. Longest Common Substring && 1812. Longest Common Substring II (后缀自动机)
代码:1811:#include#include#includeusing
namespaces
td;#defineC(t,x)sam[t].ch[x]#defineP(t)sam[t
AmadeusChan
·
2024-02-01 17:49
C++ primer 第三章 字符串、向量和数组 练习题
#includeusing
namespaces
td;intmain(){stringline;while(getline(cin,line)){coutusing
namespaces
t
虾米不打烊
·
2024-02-01 16:57
课程/书籍笔记
c++
开发语言
后端
C++ primer-练习3.34~3.36
#include#includeusing
namespaces
td;intmain(){i
qq_36393555
·
2024-02-01 16:24
C++
primer
C++
primer
C++期末复习易错点
同名遮蔽问题//找出和修正以下代码的错误voidp(inti){inti=5;coutusing
namespaces
td;voidmain(){inta=0,i;for(i=1;iclassRectangle
乘~风
·
2024-02-01 15:23
c++
算法
开发语言
gtkmm xml ui 例子(from string)
文章目录前言来看一个从字符串中生成UI的例子前言glade生成的xml格式不被gtkmm4支持,需要作修改来看一个从字符串中生成UI的例子#include#include#includeusing
namespaces
td
Computer_Tech
·
2024-02-01 15:28
GTK
xml
ui
gtkmm4
华清远见作业第三十四天——C++(第三天)
代码:#includeusing
namespaces
td;classPer{private:stringname;intage;int*heigh;int*weith;public://构造函数Per(
m0_62462327
·
2024-02-01 14:58
华清远见作业
c++
代码随想录算法训练营Day8 | 字符串part01
voidswap(char&a,char&b){chartemp=a;a=b;b=temp;}voidreverseString(vector&s){for(inti=0;i#includeusing
namespaces
td
锋_Feng
·
2024-02-01 14:19
算法
c++
leetcode
计组debug大作业
cgit参考文章链接:汇编debug环境搭建_汇编调试环境_&Dirac的博客-CSDN博客按参考文章走完之后,环境就搭建好了,测试如图2.写一个简单的程序文件#include#includeusing
namespaces
td
青山科技
·
2024-02-01 12:55
汇编
C++程序设计 上机实验(第11章——继承与派生)
1.共用继承方式、私有继承方式和保护继承方式的对比#includeusing
namespaces
td;classStudent//声明基类{public://基类公用成员voidget_value()/
—Miss. Z—
·
2024-02-01 12:52
C++程序设计
C++
visualstudio
第四章 运算符重载之——重载流插入运算符和流提取运算符
提取运算符cout>:流提取运算符重载使之用于自定义的类对象,只能重载为类的友元(1)重载流插入运算符重载流插入运算符的一般格式:ostream&operator#include#includeusing
namespaces
td
润小仙女
·
2024-02-01 12:51
C++语言总结及案例
算法
c++
后端
C++类的继承——派生类详解
继承(类的复用)——派生类1.单继承格式class:{}继承方式可以是public,private,protected#includeusing
namespaces
td;classA{intx,y;public
宇航员写代码
·
2024-02-01 12:49
C/C++
继承
类
多态
c++
派生类
牛客——中位数图(连续子数组和二维前缀和)
#includeusing
namespaces
td;inta[100005],b[100005];
swoows
·
2024-02-01 11:13
算法
连续子数组
二维前缀和
第二章 数据结构 (二)(并查集、Trie树)
#include//835存储查询字符串using
namespaces
td;constintN=1e5+10;intson[N][26],cnt[N],idx;charstr[N];//下标是0的节点既是根节点
一只程序媛li
·
2024-02-01 10:05
蓝桥准备
数据结构
c++
算法
倒计时68天
题单详情-蓝桥云课(lanqiao.cn)2.2.串门-蓝桥云课(lanqiao.cn)#includeusing
namespaces
td;#defineintlonglongconstintN=2e5
算法怎么那么难啊
·
2024-02-01 10:17
c++
matlab 创建.mat文件,C++创建和调用matlab的MAT文件
型变量,并赋值初值#include#include/*Forstrcmp()*/#include/*ForEXIT_FAILURE,EXIT_SUCCESS*/#include"mat.h"using
namespaces
weixin_39967096
·
2024-02-01 10:13
matlab
创建.mat文件
上一页
51
52
53
54
55
56
57
58
下一页
按字母分类:
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
其他