class Solution {public: int 
lengthOfLastWord(const char *s) { if (s == NULL) return 0; int mlen = 0, len = 
0; bool inword = fa...
                            
                            
                                分类:
其他好文   时间:
2014-06-29 14:13:37   
                                阅读次数:
229
                             
                    
                        
                            
                            
                                Software architecture vs codeI presented two 
talks last week with the title "Software architecture vs code" - first as the 
opening keynote for the ina...
                            
                            
                                分类:
其他好文   时间:
2014-05-30 20:10:50   
                                阅读次数:
379
                             
                    
                        
                            
                            
                                MS SqlServer: 1 2 insert into PERSON 3 
(PER_FIRST_NAME, PER_LAST_NAME, 4 PER_BIRTH_DATE, PER_WEIGHT_KG, PER_HEIGHT_M) 5 
values 6 ...
                            
                            
                                分类:
Web程序   时间:
2014-05-30 05:52:41   
                                阅读次数:
283
                             
                    
                        
                            
                            
                                临时表方式实现多条记录遍历declare @oper_cart_item_id bigint; 
declare @oper_cart_id bigint; declare @the_last_changed_date datetime; declare 
@oper_cust_id int; ...
                            
                            
                                分类:
数据库   时间:
2014-05-30 03:04:48   
                                阅读次数:
311
                             
                    
                        
                            
                            
                                翻译水平有限,见谅!Uncle Bob13 Aug 
2012ArchitectureCraftsmanshipOver the last several years we’ve seen a whole 
range of ideas regarding the architecture of s.....
                            
                            
                                分类:
其他好文   时间:
2014-05-26 19:20:25   
                                阅读次数:
354
                             
                    
                        
                            
                            
                                Set集合的配置
数据表的创建:
create table EMPLOYEE ( id INT NOT NULL auto_increment, first_name VARCHAR(20) default NULL, last_name VARCHAR(20) default NULL, salary INT default NULL, PRIMARY KEY (id) );
 
c...
                            
                            
                                分类:
系统相关   时间:
2014-05-26 03:43:18   
                                阅读次数:
365
                             
                    
                        
                            
                            
                                ";$begin_day = date("Y-m-d 00:00:00");$end_day 
= date("Y-m-d 23:59:59");$last_begin = date("Y-m-d 00:00:00",strtotime("last 
days"));$last_end = date("...
                            
                            
                                分类:
Web程序   时间:
2014-05-26 00:37:10   
                                阅读次数:
407
                             
                    
                        
                            
                            
                                jQuery的serialize()方法通过序列化表单值,创建URL编码文本字符串,我们就可以选择一个或多个表单元素,也可以直接选择form将其序列化,如:First 
name: Last name: $(document).ready(function(){ console.log($("f...
                            
                            
                                分类:
Web程序   时间:
2014-05-25 23:37:11   
                                阅读次数:
388
                             
                    
                        
                            
                            
                                【题目】
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.
If the last word does not exist, return 0.
Note: A word is defined as a character sequence consists of non-space ...
                            
                            
                                分类:
其他好文   时间:
2014-05-25 07:39:05   
                                阅读次数:
256
                             
                    
                        
                            
                            
                                通过顺序来选择
顺序选择的过滤器(filter)有
:first 第一个元素:last 最后一个元素:even 序号为偶数的元素:odd 序号为奇数的元素:eq(n) 序号等于n的元素 :lt(n)序号小于n的元素 :gt(n)序号大于n的元素
如果有如下的表格
0
even
1
odd
2
even
3
odd
4
even...
                            
                            
                                分类:
Web程序   时间:
2014-05-24 23:00:48   
                                阅读次数:
381