set是集合,虽然也存在键值和实值,不过两者根本就是同一个值,键值的设置完全就是为了满足红黑树的底层结构,set操作与map很像不过也有些不同。1、set迭代器与map的不同:(1)set使用接引用运算符*取值,而map使用first和second取值。(2)set的迭代器都是常量迭代器,不能用来修...
分类:
编程语言 时间:
2015-04-13 22:20:53
阅读次数:
122
写的第一个leetcode 数据库的题目,这真是个神坑,leetcode的大小写区分的问题,这下认真的记录一下:mysql在Linux下:1.数据库名和表名是严格区分大小的。2.表的别名也是严格区分大小写的。3.列名和列的别名在任何情况下都是忽略大小写的。4.变量名也是严格区分大小写的。Window...
分类:
其他好文 时间:
2015-04-13 20:40:40
阅读次数:
125
一、数据封装1. List集合转换成json代码 List list = new ArrayList(); list.add( "first" ); list.add( "second" ); JSONArray jsonArray2 = JSONArray.fromObject( l...
分类:
编程语言 时间:
2015-04-13 18:04:37
阅读次数:
194
Write a SQL query to get the second highest salary from the Employee table.
+----+--------+
| Id | Salary |
+----+--------+
| 1 | 100 |
| 2 | 200 |
| 3 | 300 |
+----+--------+
For exa...
分类:
其他好文 时间:
2015-04-12 00:08:47
阅读次数:
191
1.装饰器无参数:codego.net>>>deffirst(func):print‘%s()wasposttofirst()‘%func.func_namedef_first(*args,**kw):print‘Callthefunction%s()in_first().‘%func.func_namereturnfunc(*args,**kw)return_first>>>defsecond(func):print‘%s()wasposttosecond(..
分类:
编程语言 时间:
2015-04-11 21:01:43
阅读次数:
170
概念
VSYNC,vertical synchronization
Refresh Rate 屏幕一秒钟刷新的次数,由硬件决定,单位Hz,一般是60Hz
Frame Rate GPU在一秒内绘制的帧数,单位fps(Frames per second)
具体解释GPU获取图形数据进行绘制,硬件将绘制好的数据呈现在屏幕上,为了使画面在屏幕上流畅的显示,需要保持Frame Rate 在60以上,也就是一次...
分类:
移动开发 时间:
2015-04-11 20:55:37
阅读次数:
186
Clock& Clock::operator ++() //前置单目运算符重载函数{Second++;if(Second>=60){Second=Second-60;Minute++;if(Minute>=60){Minute=Minute-60;Hour++;Hour=Hour%24;}}retu...
分类:
其他好文 时间:
2015-04-11 19:30:00
阅读次数:
141
numtodsinterval(,) ,x是一个数字,c是一个字符串,表明x的单位,这个函数把x转为interval day to second数据类型 常用的单位有 ('day','hour','minute','second') example SQL> select sysdate,sys.....
分类:
数据库 时间:
2015-04-11 11:32:00
阅读次数:
155
Good morning, everyone! Today, my topic is Thinking in One My of Experience. In my speech, I will share my experience of getting back home from schoo....
分类:
其他好文 时间:
2015-04-10 17:03:53
阅读次数:
132
Girls and Boys Time Limit: 1 SecMemory Limit: 256 MB题目连接http://poj.org/problem?id=1466DescriptionIn the second year of the university somebody started...
分类:
其他好文 时间:
2015-04-10 13:25:53
阅读次数:
144