<!DOCTYPE html> <html lang="en"> <head> <style type="text/css"> #header, #nav, #content-main, #content-2, #content-3, #content-4, #content-5, #content ...
分类:
Web程序 时间:
2021-03-01 13:23:06
阅读次数:
0
DOS命令 #盘符切换 C、D、E+:(英文下的冒号)#查看当前目录下的所有文件 DIR#切换目录 cd(change directory)#跨盘符切换目录 cd /d C、D、E:\目录名#返回上一级目录 cd..#清理屏幕 cls(clear screen)#创建一个文件夹 md (text.. ...
分类:
其他好文 时间:
2021-03-01 13:21:52
阅读次数:
0
std::map的实现 template <class Pair> struct Select1st_ { const typename Pair::first_type& operator()(const Pair& x) const { return x.first; } }; template ...
分类:
其他好文 时间:
2021-03-01 13:20:12
阅读次数:
0
python学习之面向对象 类定义 与python的函数定义类似,只不过把def关键字替换为class class calculator(): pass a=calculator() print(type(a)) 输出 <class 'main.calculator'> 构造函数 与php的定义类似 ...
分类:
编程语言 时间:
2021-03-01 12:58:32
阅读次数:
0
结构变量的声明和初始化 #include <cstdio> int main() { struct { int age; int height; } x, y = {29, 180}; // 结构的成员在内存中按照声明的顺序存储 x.age = 30; x.height = 170; return ...
分类:
编程语言 时间:
2021-02-27 13:32:58
阅读次数:
0
BodyAnim无法挂载,将 @property({ type: Animation }) public BodyAnim: Animation|null = null; 换成 @property({ type: AnimationComponent }) public BodyAnim: Anim ...
分类:
其他好文 时间:
2021-02-27 13:18:11
阅读次数:
0
浮动,就是使元素脱离标准流,移动到其父元素指定的位置的过程,包括float: left float: right; 浮动常见的问题: 1.浮动的子元素无法超出父元素的范围; <head> <style type="text/css"> #father { width: 200px; height: ...
分类:
Web程序 时间:
2021-02-27 13:17:54
阅读次数:
0
更多精彩内容,请关注微信公众号:后端技术小屋 traits(译作萃取)是C++中一种特殊的编程技法,它是模板元编程最直接的用例之一。通过traits,可以抽取模板入参类型的各种属性。接下来我们通过STL中最常见的几种traits举例说明。 1 __type_traits:trivial判定 __ty ...
分类:
其他好文 时间:
2021-02-26 13:30:23
阅读次数:
0
快慢指针技巧汇总 双指针技巧可以分为两类:一类是【快慢指针】、一类是【左右指针】 一、快慢指针 快慢指针一般初始化指向链表头结点head,前进时快指针fast在前,慢指针slow在后,巧妙解决链表中的一些问题。 1、判断链表中是否有环 经典解法就是用两个指针,一个每次前进两步,一个每次前进一步。如果 ...
分类:
其他好文 时间:
2021-02-26 13:25:46
阅读次数:
0
题目描述 设计LRU缓存结构,该结构在构造时确定大小,假设大小为K,并有如下两个功能 set(key, value):将记录(key, value)插入该结构 get(key):返回key对应的value值 [要求] set和get方法的时间复杂度为O(1) 某个key的set或get操作一旦发生, ...
分类:
其他好文 时间:
2021-02-26 13:22:19
阅读次数:
0