在c/java中,拥有块级作用域的概念,大括号内就是一个块级作用域,在块级作用域内声明的变量,块以外不可见。C语音的块级作用域示例如下:int one =
1,two = 2;if(one < two){ int temp = 0; temp = one; one = two; ...
分类:
编程语言 时间:
2014-06-11 12:33:38
阅读次数:
258
1.1Implement an algorithm to determine if a
string has all unique characters. What if you cannot use additional data
structures?字符串问题,需要先确定是不是只有ASCII码...
分类:
其他好文 时间:
2014-06-11 12:27:53
阅读次数:
247
Givennpairs of parentheses, write a function to
generate all combinations of well-formed parentheses.For example, givenn= 3, a
solution set is:"((()))...
分类:
其他好文 时间:
2014-06-11 12:25:51
阅读次数:
239
原题地址:https://oj.leetcode.com/problems/plus-one/题意:Given
a non-negative number represented as an array of digits, plus one to the
number.The digits are...
分类:
编程语言 时间:
2014-06-11 11:25:27
阅读次数:
304
--重启数据库FORCE APPLICATION ALL DB2STOPDB2START
--创建数据库CREATE DATABASE mysdedb USING CODESET UTF-8 TERRITORY US COLLATE USING
SYSTEM USER TABLESPACE MANA...
分类:
数据库 时间:
2014-06-11 10:20:03
阅读次数:
307
无条件的插入Oracle中的insert
all是指把同一批数据插入到不同的表中,假如如今有个需求:把t表中的数据分别插入t1,t2,假设你不知道insert
all,你可能会使用insert插入2次,例如以下所看到的:insert into t1(object_name,object_id) s....
分类:
数据库 时间:
2014-06-11 09:20:39
阅读次数:
312
基于DOJO组件式开发写了几个DEMO练练手,仅供参考。 1.下滑菜单式容器 one fish one
fish one fish one fish one fish one fish one fish ...
分类:
其他好文 时间:
2014-06-11 09:14:16
阅读次数:
215
学习了元祖,写了小程序。#encoding = utf-8 a =
("success","false","what")print "first"print a #print all stringprint "\n"print
"second"print a[:] #pirnt all string...
分类:
编程语言 时间:
2014-06-11 09:07:45
阅读次数:
322
Liskov Substitution Princple, LSPFor every
object "o1" from type "t1", there is object "o2" from type "t2", when all "o2"
is replaced with "o1" in pro...
分类:
其他好文 时间:
2014-06-11 08:52:44
阅读次数:
221
viewfunction init_tree(product_name) { var
htmlobj=$.ajax({url: "get_all_file?param=" + param_value, async: false}); var
jsonNodes = htmlobj.respon...
分类:
Web程序 时间:
2014-06-11 08:03:40
阅读次数:
245