if(!(to_city_value.indexOf("(")>0){//code。。。。。}
分类:
Web程序 时间:
2014-05-16 23:28:33
阅读次数:
373
题目:Givennpoints on a 2D plane, find the maximum
number of points that lie on the same straight
line.算法分析:定义最大直线为符合相同条件的直线中通过点最多的那条直线。对每个点p,计算其它的点与p形成的...
分类:
其他好文 时间:
2014-05-16 23:26:31
阅读次数:
389
json的结构分数组和对象2种结构对象 以"{" 大括号开始
“}”结束中间以0个或者多个“,”号分割的关键字key/value 列表构成 关键字和值之间必须以 :
号分割语法如下:{key1:value1,key2:value2......}数组 以 [ 开始 ] 结束 中间有0个或者多个以 “,...
分类:
Web程序 时间:
2014-05-16 22:35:12
阅读次数:
488
项目进行中,使用到Map(std::map),Map要点整理如下: 1.
Map,也叫关联数组,提供key/value(键/值对),key用来索引,value是被存储和检索的数据。 2. key值唯一(Multimap除外)。 3.
Map的内部数据结构是红黑树。 3. 可以用下标操作符...
分类:
其他好文 时间:
2014-05-16 22:31:02
阅读次数:
379
for (int i = 0; i <
this.dataGridView1.Rows.Count; i++) {
this.dataGridView1.Rows[i].Cells["CheckBoxCulums"].Value = this.ch...
Given a string S, find the longest palindromic
substring in S. You may assume that the maximum length of S is 1000, and there
exists one unique longes...
分类:
其他好文 时间:
2014-05-16 21:15:37
阅读次数:
454
手机设备太多,分辨率也不一样,看到网上大部分的适应字体的方法是定义values320×480或value-hdpi方式去处理。采用第一种的就惨了,很多设备的分辨率是不一样的,难道要每种都定义吗?采用第二种的在平板电脑里没有效果。最后还是代码的方式方便快捷。。。Java代码1.//遍历设置字体
2.p...
分类:
移动开发 时间:
2014-05-16 20:04:54
阅读次数:
1654
memcached 和 redis
的set命令都有expire参数,可以设置key的过期时间。但是redis是一个可以对数据持久化的key-value
database,它的key过期策略还是和memcached有所不同的。梳理,整理如下:redis通过expire命令来设置key的过期时间。语法...
分类:
其他好文 时间:
2014-05-14 07:09:41
阅读次数:
242
Redis是一个开源的使用ANSIC语言编写、支持网络、可基于内存亦可持久化的日志型、Key-Value数据库,并提供多种语言的API。从2010年3月15日起,Redis的开发工作由VMware主持。1.环境#lsb_releaseLSBVersion::core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noar..
分类:
系统相关 时间:
2014-05-13 12:01:32
阅读次数:
487
<!doctypehtml>
<html>
<metacharset="utf-8"/>
<head>
<title>益司CMS-PC与手机建站集成</title>
<metaname="viewport"content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<linkrel="stylesh..
分类:
其他好文 时间:
2014-05-13 11:58:21
阅读次数:
335