想要在电脑上正常运行jar文件,应该确认电脑已安装好jdk和jre,并配置好环境变量。
如果安装与配置都没有问题却无法运行,则有可能是注册表的问题。
解决方法:
打开注册表,注册表项的路径为:\HKEY_CLASSES_ROOT\Aplications\javaw.exe\shell\open\command
在此路径下有一默认键值, 不正常的情况下, 键值是:"C:\Program ...
                            
                            
                                分类:
其他好文   时间:
2014-06-29 07:14:24   
                                阅读次数:
815
                             
                    
                        
                            
                            
                                题目
Write a function to find the longest common prefix string amongst an array of strings.
原题链接
解题思想
给一个字符串数组,求这些字符串的最长公共前缀。
这个题应该是比较简单的,直接写代码,一次AC。解题思想是依次对数组中的字符串求最长公共前缀。
代码实现
class Sol...
                            
                            
                                分类:
其他好文   时间:
2014-06-20 12:25:09   
                                阅读次数:
247
                             
                    
                        
                            
                            
                                Zend\View\Renderer\PhpRenderer::render: Unable to render template "wap/index/get-vhomeinfo"; resolver could not resolve to a file
原因是get-vhomeinfo在代码中是getVhomeinfo,不能有大写...
                            
                            
                                分类:
其他好文   时间:
2014-06-20 11:57:54   
                                阅读次数:
300
                             
                    
                        
                            
                            
                                SSL in Neutron LBaaS haproxy driver 的简单实现。...
                            
                            
                                分类:
其他好文   时间:
2014-06-20 11:40:53   
                                阅读次数:
349
                             
                    
                        
                            
                            
                                Server Error in '/myapp' Application.Parser ErrorDescription: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error deta...
                            
                            
                                分类:
Web程序   时间:
2014-06-20 11:15:55   
                                阅读次数:
279
                             
                    
                        
                            
                            
                                n! means n  (n
 1)
 ...
 3
 2
 1
For example, 10! = 10  9
 ...
 3
 2
 1 = 3628800,
and the sum of the digits in the number 10! is 3 + 6 + 2 + 8 + 8 + 0 + 0 = 27.
Find the sum of the digits...
                            
                            
                                分类:
其他好文   时间:
2014-06-20 09:34:10   
                                阅读次数:
215
                             
                    
                        
                            
                            
                                链接: http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=2113
Description
Given a number of strings, can you find how many strings that appears T times?
Input
The input conta...
                            
                            
                                分类:
编程语言   时间:
2014-06-20 09:00:14   
                                阅读次数:
344
                             
                    
                        
                            
                            
                                题目
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-06-07 13:47:22   
                                阅读次数:
191
                             
                    
                        
                            
                            
                                By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23.
3
7 4
2 4 6
8 5 9 3
That is, 3 + 7 + 4 + 9 = 23.
Find th...
                            
                            
                                分类:
其他好文   时间:
2014-06-07 13:45:25   
                                阅读次数:
189
                             
                    
                        
                            
                            
                                题目大意:
三个操作。
1. 合并两个集合
2.把第一个元素放到第二个集合里
3.输出集合的数量和和。。
思路分析:
要用p记录这个元素所在集合编号,然后用编号建立并查集。
#include 
#include 
#include 
#include 
using namespace std;
typedef long long LL;
int set[111111...
                            
                            
                                分类:
其他好文   时间:
2014-06-07 12:52:40   
                                阅读次数:
267