instanceof 是一个操作符(类似new, ==等) ( Object reference variable ) instanceof (class/interface type) if(a instanceof B){ } 表示:a 是不是 B 这种类型 用法: 1. 一个对象是本身类的一个 ...
分类:
其他好文 时间:
2020-02-01 15:59:23
阅读次数:
51
相关资料准备: (1)GPIO相关API请查看2c-esp8266_non_os_sdk_api_reference_cn手册 (2)GPIO相关寄存器请查看 esp8266-technical_reference_cn 手册 (3)ESP8266 的 16 个通? IO 的管脚位置和名称如下表所示 ...
分类:
其他好文 时间:
2020-02-01 11:05:42
阅读次数:
96
Your input is a series of rectangles, one per line. Each rectangle is specified as two points(X,Y) that specify the opposite corners of a rectangle. A ...
分类:
其他好文 时间:
2020-01-31 19:08:57
阅读次数:
80
VS2017调试Unity的时候可以直接在启动栏点击附加到Unity。而在VS2019没有,是因为在VS2019中把该调试按钮放在了调试栏中。 首先安装VSUnity相关工具,打开VSInstaller,安装使用Unity的游戏开发。 安装好之后,在unity3D->Edit->Preference ...
分类:
编程语言 时间:
2020-01-31 14:38:02
阅读次数:
892
官网链接 https://kubernetes.io/zh/docs/reference/kubectl/overview/#%e8%af%ad%e6%b3%95 概述:kubectl是一个命令行接口,用于对kubernetes集群运行命令。 kubect命令行 语法结构 kubetctl [com ...
分类:
Web程序 时间:
2020-01-31 14:17:35
阅读次数:
186
Lake Counting Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 56258 Accepted: 27405 Description Due to recent rains, water has pooled in va ...
分类:
其他好文 时间:
2020-01-31 10:53:47
阅读次数:
89
array是stl最简单的模板,其在c++lib中定义如下: template<typename _Tp, std::size_t _Nm> struct array { typedef _Tp value_type; //为类定义别名 typedef value_type& reference; ...
分类:
其他好文 时间:
2020-01-30 23:17:16
阅读次数:
105
1. 单例模式DCL写法 单例设计模式中,有一种双重检查锁的写法, 也就是所谓的懒汉式 class Single{ private static Single sSingle; private Single() {} public static Single getInstance() { if(s ...
分类:
编程语言 时间:
2020-01-30 19:18:28
阅读次数:
92
名称空间 using编译指令 名称空间是用来区分不同库的相同函数名,仅当引用头文件没有.h时使用名称空间。 变量的声明 定义声明(defining declaration) 声明即定义,在同一个文件 引用声明(reference declaration) A文件声明,B文件定义 ...
分类:
编程语言 时间:
2020-01-30 17:01:39
阅读次数:
61
Given a binary search tree and a node in it, find the in-order successor of that node in the BST. The successor of a node p is the node with the small ...
分类:
其他好文 时间:
2020-01-30 12:39:54
阅读次数:
54