将Json存进本地文件夹NSArray *paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);NSString *path=[paths objectAtIndex:0];NSSt...
                            
                            
                                分类:
移动开发   时间:
2014-10-28 23:34:22   
                                阅读次数:
189
                             
                    
                        
                            
                            
                                解决警告“warning:directorynotfoundforoption”1.选择工程, 编译的 (targets)2.选择 Build Settings菜单3.查找 Library Search Paths 和 Framework Search Paths, 删掉编译报warning的路径即...
                            
                            
                                分类:
其他好文   时间:
2014-10-28 20:01:52   
                                阅读次数:
108
                             
                    
                        
                            
                            
                                HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Pathshow to load BPLs without writing them in the system directory or in the applicat...
                            
                            
                                分类:
移动开发   时间:
2014-10-28 20:01:45   
                                阅读次数:
344
                             
                    
                        
                            
                            
                                http://acm.sdibt.edu.cn/JudgeOnline/problem.php?id=2325
题目大意:(如题)
输入输出:(如题)
解题思路:
1.用打表法将每个数N(1
2.枚举。从千位开始枚举,一直枚举到个位为止,每次判断减掉那个数之后剩下的数是否还不小于0。如果不小于则继续,反之结束。
3.减小代码的方法。
(1) 10进制数到罗马数字的转换表:
stri...
                            
                            
                                分类:
其他好文   时间:
2014-10-27 12:45:46   
                                阅读次数:
196
                             
                    
                        
                            
                            
                                问题描述:
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.
For example:
Given the below binary tree and sum = 22,
              5
             /...
                            
                            
                                分类:
其他好文   时间:
2014-10-26 14:24:00   
                                阅读次数:
224
                             
                    
                        
                            
                            
                                require.js遵循AMD规范,通过define定义模块,require异步加载模块,一个js文件即一个模块。一、模块加载require1.加载符合AMD规范模块HTML:MAIN.JS require.config({ baseUrl: "js/lib", paths: { ...
                            
                            
                                分类:
Web程序   时间:
2014-10-25 22:53:49   
                                阅读次数:
284
                             
                    
                        
                            
                            
                                属于中规中矩的dp。和unique paths类似。一次ac。但是可以通过滚动数组来节省存储空间。 1 #include 2 #include 3 #include 4 using namespace std; 5 6 class Solution { 7 public: 8 int...
                            
                            
                                分类:
其他好文   时间:
2014-10-25 21:19:04   
                                阅读次数:
244
                             
                    
                        
                            
                            
                                Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
                            
                            
                                分类:
其他好文   时间:
2014-10-24 18:07:56   
                                阅读次数:
170
                             
                    
                        
                            
                            
                                1 NSArray *paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *path=[paths objectAtIndex:0]; NSSt...
                            
                            
                                分类:
移动开发   时间:
2014-10-24 12:17:50   
                                阅读次数:
141
                             
                    
                        
                            
                            
                                列举目录中的所有文件
首先给出代码:
Files.list(Paths.get(".")).forEach(System.out::println);
Files.list方法得到的是一个Stream类型的对象,它代表了目标路径下所有的文件。如果只想获取目标路径下的所有目录文件:
Files.list(Paths.get("."))
    .filter(Files...
                            
                            
                                分类:
编程语言   时间:
2014-10-24 11:00:57   
                                阅读次数:
163