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
nullptr
笔记汇总
);public:staticSingleton*getInstance();staticSingleton*m_instance;};Singleton*Singleton::m_instance=
nullptr
布偶猫真好看
·
2020-08-09 16:58
链表归并排序(递归|非递归)
includeusingnamespacestd;structListNode{intval;ListNode*next;ListNode()=default;ListNode(intval):val(val),next(
nullptr
vloai
·
2020-08-09 13:29
排序
数据结构——反转单链表
structListNode{int_data;ListNode*_pNext;};解决方案如下:ListNode*ReverseList(ListNode*pHead){ListNode*pRevesedHead=
nullptr
没有梦想__何必远方
·
2020-08-09 13:05
数据结构
AndroidQ 图形系统(8)SurfaceFlinger合成之Vsync处理
=
nullptr
){frameAvailableListener->onFrameAvailable(item);}elseif(frameRe
DJLZPP
·
2020-08-09 10:26
Android图形系统
前序
=
nullptr
||!s.empty()){while(node!=
nullptr
){/*operationofnode*/s.push(node);node=node->l
浅笑的青珞
·
2020-08-09 06:29
校招复习
数据结构&算法
C/C++ ctime
stringget_greet(conststd::string&who){return"Hello"+who;}voidprint_localtime(){std::time_tresult=std::time(
nullptr
zoot
·
2020-08-09 04:57
C/C++
QT中的connect用法总结
为方便演示,先自定义一个Button,然后定义两个重载的信号lassMyButton:publicQWidget{Q_OBJECTpublic:explicitMyButton(QWidget*parent=
nullptr
wu694128
·
2020-08-09 02:35
QT
004:第四周程序填空题3
#include#includeusingnamespacestd;classArray2{public:int**data=
nullptr
;inth,w;Array2():h(0),w(0){}//1
冰冻三尺go
·
2020-08-08 22:37
MOOC
C++程序设计
LRU 实现的四种方式
classLRUCache{private:structNode{intkey;intval;Node*next;Node(intkey,intval):key(key),val(val),next(
nullptr
-似曾相识燕归来
·
2020-08-08 16:29
Algorithm
c++
ffmpeg 打开USB摄像头
AVFormatContext*pFormatCtx=
nullptr
;//如果不初始化为
nullptr
,程序会异常。AVInputFormat*if
esdhhh
·
2020-08-08 15:10
c++
《Qt Creator笔记》 QListview
include#include#include#includeclassMyWidget:publicQWidget{Q_OBJECTpublic:explicitMyWidget(QWidget*parent=
nullptr
肖曾和
·
2020-08-08 14:01
Qt
Creator笔记
QtCreator
QListView
用 WinPcap 获取网络接口列表
//#include"stdafx.h"#includeint_tmain(){pcap_if_t*alldevs=
nullptr
;pcap_if_t*
YapingXin
·
2020-08-08 13:27
C++
C
winpcap
【STL】之List的模拟实现
includeusingnamespacestd;#includenamespacemyself{templatestructListNode{ListNode(constT&data=T()):_pPre(
nullptr
ENSHADOWER
·
2020-08-08 12:43
ffmpeg(搭建简单直播系统)
stream0”);在现实环境中,网络好的是不需要检查时间戳的,毕竟是直播网络不是好的时候用udp不用tcprtcp只是控制协议,,Wireshark抓包工具AVDictionary*options=
nullptr
吐着泡泡说爱你
·
2020-08-07 22:07
视音频开发
合并两个有序链表
intx):val(x),next(NULL){}*};*/classSolution{public:ListNode*mergeTwoLists(ListNode*l1,ListNode*l2){if(
nullptr
第一视角丶
·
2020-08-07 21:29
练习
C++11与C++98的区别(更)
##C++11与C++98的区别>本文参考了许多邓凡平老师的blogC++11学习之路-这俩天学QT的时候发现遇到了很多C++11的特性于是决定点C++11与C++98的区别,不定时更新1.空指针(
nullptr
潘然PR
·
2020-08-07 15:33
C
cocos2d-x 在ios端播放完mp4会崩溃的问题
=
nullptr
){[[NSNotificationCenterdefaultCenter]removeObserver:selfname:MPMoviePlayerPlaybackDidFinishNotificati
PasserLin
·
2020-08-07 15:26
Cocos2d学习笔记
C++面经总结
但是不能用于函数传参以及数组类型的推导2.
nullptr
关键字:
nullptr
是一种特殊类型的字面值,它可以被转换成任意其它的指针类型;而NULL一般被宏定义为0,在遇到重载时可能会出现问题。
Pannie_zhang
·
2020-08-07 07:58
c++
leetcode 21 合并两个有序链表
*structListNode{*intval;*ListNode*next;*ListNode():val(0),next(
nullptr
LYsdu
·
2020-08-06 10:19
C++ 二叉树(附'二叉树的镜像'算法题答案)
includeusingnamespacestd;structTreeNode{intval;TreeNode*left;TreeNode*right;TreeNode(intvalue){this->val=value;this->left=
nullptr
沐婉清
·
2020-08-05 21:54
剑指Offer
剑指offer,面试题1,面试题2
面试题1:赋值运算符函数面试题2:实现Singleton模式赋值运算符函数//TEST1赋值运算符重载classString{public:String(constchar*pst=
nullptr
);String
海马HiMark
·
2020-08-05 21:06
剑指offer
面试题
剑指offer
19. 镜像二叉树(C++版本)
使用二叉树的相关定义及函数在:二叉树最小结构(C++版本)循环实现:voidMirrorBinaryTree(BinaryTreeNode*pRoot){if(
nullptr
==pRoot)return
xupeng1644
·
2020-08-05 21:14
剑指offer
【剑指offer】面试题27. 二叉树的镜像
2020.7.9更新classSolution{public:TreeNode*invertTree(TreeNode*root){if(root==
nullptr
)returnnullptr;swap
Do Better
·
2020-08-05 20:40
【魂】算法
反转二叉树C++
):val(x),left(NULL),right(NULL){}};classSolution{public:TreeNode*invertTree(TreeNode*root){if(root==
nullptr
sakumashirayuki
·
2020-08-05 19:50
数据结构
LeetCode高频面试题
小的元素中等递归提前终止与记录所需数据的典型题classSolution{inti=0;intres=0;public:intkthSmallest(TreeNode*root,intk){if(root==
nullptr
qq_32468785
·
2020-08-05 19:00
蒋豆芽的秋招之路
C++
面试题27:二叉树的镜像
二叉树的镜像题目描述leetcode题目描述输入一棵二叉树,输出它的镜像思路:遍历二叉树,左右儿子交换voidMirrorRecursively(BinaryTreeNode*pNode){if(pNode==
nullptr
我的喵喵找不到了
·
2020-08-05 19:22
C++
leetcode
算法
Qt实现windows系统托盘例子
includenamespaceUi{classWidget;}classWidget:publicQWidget{Q_OBJECTpublic:explicitWidget(QWidget*parent=
nullptr
Keycer
·
2020-08-05 15:41
Qt
Error - RtlWerpReportException failed with status code :-1073741823. Will try to launch the process
在声明的时候将其QRubberBand*rubberBand=Q_
NULLPTR
;就可
not so perfect
·
2020-08-05 13:47
std::shared_ptr的简单实现
defineSTD_SHAREDPTR_H#include#includeusingnamespacestd;templateclassMy_SharedPtr{My_SharedPtr():count_(newsize_t),ptr_(
nullptr
aiYuqiong
·
2020-08-05 11:47
[C++] 共享智能指针探究
也就是像这样:int*a=newint(1);deletea;coutclassSmartPtr{private:T*ptr=
nullptr
;int*refCount=
nullptr
;};(2)引用计数的增加引用与减少引用首先
ZJU_fish1996
·
2020-08-05 10:57
C++
【Cpp】NULL与
nullptr
(C++11起)
一、先来谈谈NULLNULL是一个宏,其定义如下#ifndef__cplusplus#defineNULL(void*)0#else#defineNULL0#endif在C语言中,NULL就是(void*)0,通常用于指示指针没有有效操作对象,以避免野指针的出现int*p=NULL;/*业务代码*/if(NULL!=p){/*解引用p*/}由于在C++中,不支持从void*类型到int*类型的隐式
Baymaxly
·
2020-08-05 03:14
C++
C语言
【FFmpeg系列】FFmpeg解码视频文件为YUV
视频解码流程主要步骤解析打开并读取输入文件intret=0;pFormatCtx=avformat_alloc_context();if(avformat_open_input(&pFormatCtx,inputPath,
nullptr
Turisla
·
2020-08-05 00:58
FFmpeg
c++
ffmpeg
yuv
decode
面试题21:调整数组顺序使奇数位于偶数前面 C++
分析:1.直接法2.前后指针交替法,类似快速排序#includeusingnamespacestd;voidreorder(int*pData,intlength){if(pData==
nullptr
|
Gunther17
·
2020-08-05 00:24
剑指offer题
剑指offer
【算法题】找出两个只出现奇数次的数字
其他数均出现了偶数次利用异或运算:A^B^A=B^A^A=B;A^A=0;A^0=A#includeusingnamespacestd;voidfun(int*array,intlen){if(array==
nullptr
xiaxzhou
·
2020-08-04 22:58
俄罗斯方块C++源码
include#include"tetromino.h"usingnamespacestd;boolpanel[1000][1000];//面板,true=空,false=占据tetromino*p=
nullptr
wzh190015
·
2020-08-04 21:26
小游戏
vs2015+qt5.8 学习(四)- 读取本地视频显示并保存图片
includeusingnamespacecv;classVideoProcess:publicQMainWindow{Q_OBJECTpublic:VideoProcess(QWidget*parent=Q_
NULLPTR
water_93
·
2020-08-04 19:21
图像处理
E2. Asterism (Hard Version)(思维)
constintN=6e5+5;intt;intmain(){ios::sync_with_stdio(false);cin.tie(
nullptr
);//freopen("in.txt","r",stdin
DQYZhwk
·
2020-08-04 17:41
Codeforces
pupil
【Android】hwbinder service在client的调用
=
nullptr
){。。。。。。。myTvEvent->SendEvent(m_pInfo,m_sName);}3、获取servicehidl_tring返回值OString
lin_ff
·
2020-08-04 15:05
安卓
PAT (Basic Level) 1028 人口普查
代码#includeusingnamespacestd;intmain(){ios::sync_with_stdio(false);cin.tie(
nullptr
);cout.tie(
nullptr
);
xavier_cai
·
2020-08-04 13:45
剑指offer面试题1-10
赋值运算符函数、为如下CMyString类型添加赋值运算符函数#include#include//为下列函数添加赋值运算符函数classCMyString{public:CMyString(char*pData=
nullptr
进击的小阿鲲
·
2020-08-04 12:31
剑指offer
c++
codeforces1373E. Sum of Digits
题意:定义f(x)为x的所有数位和,给定n(0=intmain(){std::ios::sync_with_stdio(false);std::cin.tie(
nullptr
);intt;std::cin
best_jayce
·
2020-08-04 11:11
算法
谈平衡二叉树的原理(c++实现)
节点结构体:templatestructNode{Tkey;Node*lchild;Node*rchild;Node(Tk):key(k),lchild(
nullptr
),rchild(
nullptr
)
kite97
·
2020-08-04 10:00
生成1-n的不重复的随机数,1-n都会出现
,num,a[N];srand((unsigned)time(NULL));for(i=0;ia;int*result=newint[n];//保存结果的srand(static_cast(time(
nullptr
xiaowenmu1
·
2020-08-04 08:02
算法
C++判断文件夹是否存在
/post";DIR*dir;//returnvalueforopendir()dir=opendir(path.data());if(dir==
nullptr
){cout<<"dirdon'texist
努力啊努力
·
2020-08-04 06:58
C++
单链表及双链表常用方法
intdata;structNode*next;}Node,*ptr_Node;typedefenumStatus{SUCCESS,ERROR}Status;根据数组生成一条链表,成功则返回头节点,失败返回
NULLptr
_Nodecreate
_Kim
·
2020-08-04 06:20
数据结构与算法
DX11开发报错error X1505: No include handler specified, can't perform a #include.
LightHelper.fx然而在个人的VS、PS中直接#include"LightHelper.fx"却报错,网上搜了下也没找到解决方法后来对比代码后发现,需要将原先D3DCompileFromFile(filePath,
nullptr
MaloFleur
·
2020-08-04 03:33
游戏开发
DirectX
C++之手撕引用计数的智能指针
#include#includeusingnamespacestd;templateclassRefCnt{public:RefCnt(T*ptr=
nullptr
):mptr(ptr){if(mptr!
sky@dk
·
2020-08-03 23:00
简析二叉排序树(c++实现)
节点结构体:templatestructNode{//节点结构体Tkey;Node*lchild;Node*rchild;Node(Tk):key(k),lchild(
nullptr
),rchild(
nullptr
kite97
·
2020-08-03 23:00
cocos2dx-3.x spine换装
SpineNode.cpp文件#include"SpineNode.h"#include"SpineUtils.h"usingnamespacecocos2d;staticVector*_displayTexs=
nullptr
berlin5151
·
2020-08-03 22:12
cocos2dx-3.x
spine
数据结构与算法---树相关题目
TreeNode*Convert(TreeNode*pRootOfTree){//空节点直接返回nullif(pRootOfTree==
nullptr
)returnnullptr;//单节点直接返回此节点
littleflypig
·
2020-08-03 19:23
数据结构
上一页
46
47
48
49
50
51
52
53
下一页
按字母分类:
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
其他