缘起:想获取字符串中指定的字符,考虑用正则表达式,遂写了如下的代码:[cpp]view plaincopyNSString*htmlStr=@"oauth_token=1a1de4ed4fca40599c5e5cfe0f4fba97&oauth_token_secret=3118a84ad91096...
                            
                            
                                分类:
其他   时间:
2015-03-13 18:37:19   
                                收藏:
0  评论:
0  赞:
0  阅读:
280
                             
                         
                    
                        
                            
                            
                                声明类型为泛型。说明传递的参数为泛型,而不仅仅是一种类型。 public void aa(T a) { Console.WriteLine(a); }调用时可写:this.aa(5);this.aa(string)("aaaa");C#变量类型后面加...
                            
                            
                                分类:
其他   时间:
2015-03-13 18:37:09   
                                收藏:
0  评论:
0  赞:
0  阅读:
336
                             
                         
                    
                        
                            
                            
                                According to Wikipedia:Insertion sortiterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insertio...
                            
                            
                                分类:
其他   时间:
2015-03-13 18:36:59   
                                收藏:
0  评论:
0  赞:
0  阅读:
283
                             
                         
                    
                        
                            
                            
                                http://headjs.com/并行加载JS,但是执行的时候却按顺序执行,提高网站速度注意:head.js("js/jquery-1.6.1.min.js","js/jquery.validate.min.js","js/my_validate.js"); 里面包含的JS在本地文件夹里面必须有,...
                            
                            
                                分类:
Web开发   时间:
2015-03-13 18:36:49   
                                收藏:
0  评论:
0  赞:
0  阅读:
455
                             
                         
                    
                        
                            
                            
                                http://blog.sina.com.cn/s/blog_4d276ac901011ee7.html——TCM项目所得一、看图说话1、基于套接字的TCP服务器/客户端程序流程2、TCP三次握手建立连接3、TCP四次交互断开连接4、TCP状态转移图这张图看不懂的话解释在计算机网络第四版P274。解...
                            
                            
                                分类:
其他   时间:
2015-03-13 18:36:39   
                                收藏:
0  评论:
0  赞:
0  阅读:
341
                             
                         
                    
                        
                            
                            
                                Convert Sorted List to Binary Search Tree问题:Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced B...
                            
                            
                                分类:
其他   时间:
2015-03-13 18:36:29   
                                收藏:
0  评论:
0  赞:
0  阅读:
243
                             
                         
                    
                        
                            
                            
                                字符串反转
                            
                            
                                分类:
其他   时间:
2015-03-13 18:35:59   
                                收藏:
0  评论:
0  赞:
0  阅读:
344
                             
                         
                    
                        
                            
                            
                                1、最古老的 //未处理public static final int PROCESS_STATUS_UNTREATED = 0;//已接收public static final int PROCESS_STATUS_ACCPECTED = 1;//已处理public static final in...
                            
                            
                                分类:
编程语言   时间:
2015-03-13 18:35:49   
                                收藏:
0  评论:
0  赞:
0  阅读:
266
                             
                         
                    
                        
                            
                            
                                public class ReflectTester { public Object copy(Object object) throws Exception { // 获得对象的类型 Class classType = object.getClass(); System.out.printl...
                            
                            
                                分类:
其他   时间:
2015-03-13 18:35:39   
                                收藏:
0  评论:
0  赞:
0  阅读:
289
                             
                         
                    
                        
                            
                            
                                转自http://blog.csdn.net/java2000_net/archive/2008/06/05/2512510.aspx我们先看2个类的定义[java] view plaincopypublicclassHashtableextendsDictionaryimplementsMap,C...
                            
                            
                                分类:
其他   时间:
2015-03-13 18:35:19   
                                收藏:
0  评论:
0  赞:
0  阅读:
274
                             
                         
                    
                        
                            
                            
                                一、相关jar包 一个空struts工程的jar包: 另上传文件的两个jar包:二、页面1、上传页面upload.jsp 1 3 4 5 6 7 Insert title here 8 9 10 11 12 13 14 15 注:a. form表单要有属性 enctype="mult...
                            
                            
                                分类:
Web开发   时间:
2015-03-13 18:35:09   
                                收藏:
0  评论:
0  赞:
0  阅读:
483
                             
                         
                    
                        
                            
                            
                                1001. A+B Format (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard 作者CHEN, YueCalculate a + b and output the sum in standard format -- that is, the ...
                            
                            
                                分类:
其他   时间:
2015-03-13 18:35:00   
                                收藏:
0  评论:
0  赞:
0  阅读:
304
                             
                         
                    
                        
                            
                            
                                题目大意:维护一棵树,支持查询两点间路径最大值,以及修改某边的权值。裸的树链剖分+线段树。。不多说这题卡常数卡的厉害啊!vector完全过不了然后。。我就写了我一点都不熟悉的普通邻接表。虽然代码丑,虽然依然很慢,虽然有点长,但是它至少A了。。 1 #include 2 #include 3 #...
                            
                            
                                分类:
其他   时间:
2015-03-13 18:34:49   
                                收藏:
0  评论:
0  赞:
0  阅读:
286
                             
                         
                    
                        
                            
                            
                                一、auto关键字的前世从C语言开始,auto关键字就被当作是一个变量的存储类型修饰符,表示自动变量(局部变量)。它不能被单独使用,否则编译器会给出警告。#include int main(){ int a = 123; auto int b = 234; ...
                            
                            
                                分类:
编程语言   时间:
2015-03-13 18:34:19   
                                收藏:
0  评论:
0  赞:
0  阅读:
289
                             
                         
                    
                        
                            
                            
                                看源码:Pull-to-Refresh.Rentals-Androidhttps://github.com/Yalantis/Pull-to-Refresh.Rentals-AndroidAndroid-PullToRefreshhttps://github.com/chrisbanes/Andro...
                            
                            
                                分类:
移动平台   时间:
2015-03-13 18:34:09   
                                收藏:
0  评论:
0  赞:
0  阅读:
330
                             
                         
                    
                        
                            
                            
                                一,最常见MYSQL最基本的分页方式:select * from content order by id desc limit 0, 10在中小数据量的情况下,这样的SQL足够用了,唯一需要注意的问题就是确保使用了索引。随着数据量的增加,页数会越来越多,查看后几页的SQL就可能类似:select *...
                            
                            
                                分类:
数据库技术   时间:
2015-03-13 18:33:59   
                                收藏:
0  评论:
0  赞:
0  阅读:
294
                             
                         
                    
                        
                            
                            
                                现在有一个ListView(lv1),有2列。ListViewItem lvi = new ListViewItem();lvi.Text = "语文";lvi.SubItems.Add("99");lvi.Items.Add(lvi);lvi = new ListViewItem();lvi.Te...
                            
                            
                                分类:
Windows开发   时间:
2015-03-13 18:33:49   
                                收藏:
0  评论:
0  赞:
0  阅读:
356
                             
                         
                    
                        
                            
                            
                                《Windows Azure Platform 系列文章目录》 在笔者之前的博客中Windows Azure Virtual Network (6) 设置Azure Virtual Machine固定公网IP (Virtual IP Address, VIP) (1),笔者介绍了如何在创建虚拟...
                            
                            
                                分类:
Windows开发   时间:
2015-03-13 18:33:09   
                                收藏:
0  评论:
0  赞:
0  阅读:
1203
                             
                         
                    
                        
                            
                            
                                #include int w[301][21]; int get_max(int a, int b){ if(a>=b) return a; else return b;}int main(void){ int tc, T; ...
                            
                            
                                分类:
其他   时间:
2015-03-13 18:32:59   
                                收藏:
0  评论:
0  赞:
0  阅读:
286
                             
                         
                    
                        
                            
                            
                                Initializing a View Object //初始化view- (id)initWithFrame:(CGRect)aRect //通过一个矩形对象初始化Configuring a View’s Visual Appearance //配置视觉展示@property(nonatomic,...
                            
                            
                                分类:
移动平台   时间:
2015-03-13 18:32:49   
                                收藏:
0  评论:
0  赞:
1  阅读:
2160