class string { public: string(const char *str=NULL); string(const string& str); //copy构造函数的参数为什么是引用呢? string& operator=(const string & str); //赋值函数为什么... ...
分类:
其他好文 时间:
2019-08-08 21:09:44
阅读次数:
125
Python3 的六个标准数据类型中:不可变数据(3 个):Number(数字)、String(字符串)、Tuple(元组);可变数据(3 个):List(列表)、Dictionary(字典)、Set(集合)。 数字类型 Python中数字有四种类型:整数、布尔型、浮点数和复数。 Python支持复 ...
分类:
编程语言 时间:
2019-08-08 21:08:16
阅读次数:
111
第16课-栈的应用实战二 1. 问题的提出 计算机的本质工作就是数学运算,那计算机可以读入字符串”9 + (3 - 1) *5 +8/2”并且计算值吗? 2. 后缀表达式 波兰科学家在20世纪50年代提出了一种将运算符放在数字后面的后缀表达式。 对应的,我们平时用的数学表达式叫做中缀表达式。 实例 ...
分类:
其他好文 时间:
2019-08-08 19:29:16
阅读次数:
81
在C++中,我们常会遇到三种new的形式:operator new 、new operator 、placement new ①new operator (new操作符):①申请空间 ②创建对象 图示步骤: ②operator new (操作符new): 申请空间 ③placement new (定 ...
分类:
编程语言 时间:
2019-08-08 19:03:33
阅读次数:
104
vue 中 有个 ' use strict ' 为严格模式,导致我们的一些东西都不可以使用,使用便会报错 解决方法:我们下载 babel-plugin-transform-remove-strict-mode 的插件 下载插件:npm install babel-plugin-transform-r ...
分类:
其他好文 时间:
2019-08-08 16:09:48
阅读次数:
352
package org.linlinjava.litemall.core.util; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.regex.Mat... ...
分类:
其他好文 时间:
2019-08-08 00:47:35
阅读次数:
115
Salty Fish Support or Not Three Investigators Milk Candy Ridiculous Netizens Stay Real TDL Snowy Smile Faraway Nonsense Time Speed Dog 11 Dimensions ...
分类:
其他好文 时间:
2019-08-07 18:50:13
阅读次数:
97
题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=6089 题解 这波强行维护搞得我很懵逼。。。 扫描线,只考虑每个点能走到左上方(不包括正上方,但包括正左方)的哪些点,然后旋转四次坐标系处理 所有询问和操作点按照先$x$后$y$坐标的顺序排序,然后枚举每 ...
分类:
其他好文 时间:
2019-08-06 13:55:05
阅读次数:
101
题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=6136 题解 完了,普及题都不会做了。。。 发现一个重要性质是只有相邻的人才会相撞,于是直接拿堆维护即可。。。 WA了好几发。。。 代码 cpp include include include inclu ...
分类:
其他好文 时间:
2019-08-06 13:42:43
阅读次数:
103
```cpp include using namespace std; const int N=500005; struct node{ int pos,val,id; bool operator pos;} }; struct data{int l,r,pos;}q[N]; int n,m,a[N ...
分类:
其他好文 时间:
2019-08-06 01:14:18
阅读次数:
126