情景假设:绑定的是一个Point,当Point的X或者Y属性发生改变时,绑定的点也随界面改变此时界面不会发生改变原因:当X或者Y属性发生改变时并没有触发Point的Set方法 1 2 3 4 5 6...
                            
                            
                                分类:
其他好文   时间:
2014-07-09 20:16:49   
                                阅读次数:
173
                             
                    
                        
                            
                            
                                xcode 5.0连接 svn server, check out时出现如下error :The operation couldn’t be completed. (NSURLErrorDomain error -1012.)解决方法:打开终端 然后输入如下命令svn ls xxxx(xxx是你的S...
                            
                            
                                分类:
其他好文   时间:
2014-07-08 22:36:11   
                                阅读次数:
249
                             
                    
                        
                            
                            
                                Assume you have a method isSubstring which checks if one word is a substring of another. Given two strings, s1 and s2, write code to check if s2 is a ...
                            
                            
                                分类:
其他好文   时间:
2014-07-08 21:44:23   
                                阅读次数:
177
                             
                    
                        
                            
                            
                                C++ 类中的静态变量
静态数据成员:
下面看一个例子:
#include 
class Point
{
public:
void output()
{
}
static void init()
{  
} 
};
void main( void )
{
Point pt;
pt.init();
pt.output(); 
}
这样编译是不会有任何错...
                            
                            
                                分类:
编程语言   时间:
2014-07-08 21:11:37   
                                阅读次数:
179
                             
                    
                        
                            
                            
                                What Is Your Grade?
Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 8302    Accepted Submission(s): 2547
Problem Description
“Point...
                            
                            
                                分类:
其他好文   时间:
2014-07-08 18:48:30   
                                阅读次数:
171
                             
                    
                        
                            
                            
                                1、错误描述
java.lang.IllegalArgumentException:Can not find a java.io.InputStream  with the name [inputStream] in the invocation stack.
Check the  tag specified for this action
2、错误原因
3、解决办法...
                            
                            
                                分类:
其他好文   时间:
2014-07-08 18:33:04   
                                阅读次数:
237
                             
                    
                        
                            
                            
                                一种方法是先翻转当前数,然后把它和原数比较(略)另一种是递归方法,借用一个复制数,对原数递归,使之翻转,然后配合复制数比较package recursion;
public class Check_if_a_number_is_palindrome {
	public static void main(String[] args) {
		int num = 121321;
		System....
                            
                            
                                分类:
其他好文   时间:
2014-07-08 17:13:55   
                                阅读次数:
188
                             
                    
                        
                            
                            
                                4.6 人性化表单 
		
		
			function $(str) {return(document.getElementById(str));}
			function check_submit(){
				if($("txt_user_name").value==""){alert("请填写用户名");return(false);}
				if($("txt_user_pass").v...
                            
                            
                                分类:
编程语言   时间:
2014-07-08 15:08:33   
                                阅读次数:
175
                             
                    
                        
                            
                            
                                Given n non-negative integers a1, a2,
 ..., an, where each represents a point at coordinate (i, ai). n vertical
 lines are drawn such that the two endpoints of line i is at (i, ai) and (i,
 0). Fin...
                            
                            
                                分类:
其他好文   时间:
2014-07-08 14:21:56   
                                阅读次数:
190
                             
                    
                        
                            
                            
                                TaskdescriptionAnon-emptyzero-indexedarrayAconsistingofNintegersisgiven.Apermutationisasequencecontainingeachelementfrom1toNonce,andonlyonce.Forexample,arrayAsuchthat:A[0]=4A[1]=1A[2]=3A[3]=2isapermutation,butarrayAsuchthat:A[0]=4A[1]=1A[2]=3isnotapermutati..
                            
                            
                                分类:
其他好文   时间:
2014-07-08 12:28:44   
                                阅读次数:
201