Java中对Map(HashMap,TreeMap,Hashtable等)的排序时间 
首先简单说一下他们之间的区别: HashMap: 最常用的Map,它根据键的HashCode 
值存储数据,根据键可以直接获取它的值,具有很快的访问速度。HashMap最多只允许一条记录的键为Null(多条会覆盖);...
                            
                            
                                分类:
编程语言   时间:
2014-05-08 13:44:25   
                                阅读次数:
333
                             
                    
                        
                            
                            
                                c# 获取字符串中的数字 /// /// 获取字符串中的数字 /// /// 字符串 /// 数字 
例子1: public static decimal GetNumber(string str) { decimal result = 0; if (str 
!= null && str != str...
                            
                            
                                分类:
其他好文   时间:
2014-05-08 13:32:21   
                                阅读次数:
347
                             
                    
                        
                            
                            
                                1:默认初始化如果对类中的变量不进行初始化,系统则会初始化变量为对应的值 比如int = 0, 
bool = fase String = null;2:手动初始化变量private int age = 23;3:初始化块{ id = 201245; age 
= 23;}4:构...
                            
                            
                                分类:
编程语言   时间:
2014-05-08 12:57:43   
                                阅读次数:
361
                             
                    
                        
                            
                            
                                lua中打印所以类型功能实现
本人测试 number、string、bool、nil、table嵌套table、userdata没问题 共享一下有什么问题请拍砖 代码如下 cclog = function( ... )
    local tv = "\n"
    local xn = 0
    local function tvlinet(xn)
        -- body...
                            
                            
                                分类:
其他好文   时间:
2014-05-07 21:51:38   
                                阅读次数:
347
                             
                    
                        
                            
                            
                                static BOOL flag=NO;
    
    
    dispatch_queue_t myQueue=dispatch_queue_create("identifier", NULL);
    
    dispatch_async(myQueue, ^{
        
        for (int i=0; i
            NSLog(@"...
                            
                            
                                分类:
编程语言   时间:
2014-05-07 21:37:21   
                                阅读次数:
305
                             
                    
                        
                            
                            
                                Explain的type显示的是访问类型,是较为重要的一个指标,结果值从好到坏依次是:system 
> const > eq_ref > ref > fulltext > ref_or_null > index_merge 
> unique_subquery > index_subquery > r...
                            
                            
                                分类:
其他好文   时间:
2014-05-07 21:26:56   
                                阅读次数:
282
                             
                    
                        
                            
                            
                                建立数据库: mysql>create database test; 
//建立一个名为"test"的数据库建立数据库表: mysql> create table test -> (name char(16) not 
null, -> passwd...
                            
                            
                                分类:
数据库   时间:
2014-05-07 21:22:19   
                                阅读次数:
378
                             
                    
                        
                            
                            
                                std::string GetFilePath() { char 
exepath[MAX_PATH];std::string strdir,tmpdir;memset(exepath,0,MAX_PATH); 
GetModuleFileName(NULL,exepath,MAX_PATH); tmp...
                            
                            
                                分类:
其他好文   时间:
2014-05-07 14:59:14   
                                阅读次数:
240
                             
                    
                        
                            
                            
                                inline static UIColor* getColorFromHex(NSString *hexColor)
{
    
    if (hexColor == nil) {
        return nil;
    }
    
    unsigned int red, green, blue;
    NSRange range;
    range.length = 2;
...
                            
                            
                                分类:
移动开发   时间:
2014-05-07 11:48:26   
                                阅读次数:
327
                             
                    
                        
                            
                            
                                1.SQL TO String :只返回一个查询结果 例如查询某条记录的总数 rs = 
stmt.executeQuery(replacedCommand); if (rs != null && rs.next()) // rs 
only contains one row and one colu....
                            
                            
                                分类:
数据库   时间:
2014-05-07 00:18:30   
                                阅读次数:
600