数组乘积(15分)输入:一个长度为n的整数数组input输出:一个长度为n的整数数组result,满足result[i] = input数组中除了input[i]之外所有数的乘积(假设不会溢出)。比如输入:input ={2,3,4,5},输出result = {60,40,30,24}程序时间和空...
分类:
移动开发 时间:
2014-07-28 14:35:13
阅读次数:
187
var s = PointToScreen(txt1.Location); 获取控件的坐标 var s = PointToScreen(控件名.Location); txt1中txtbox控件名
分类:
其他好文 时间:
2014-07-28 03:01:29
阅读次数:
167
Problem Description
FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is labelled (p,q) where 0 <= p < n and 0 <= q < n. At e...
分类:
其他好文 时间:
2014-07-28 00:02:49
阅读次数:
319
ViewFunctionality--------------->逻辑Data----------------------->实体,包括从View、Net、其他对象比如Location,Cookie等获得的数据StorageNet
分类:
移动开发 时间:
2014-07-27 22:31:09
阅读次数:
221
在搭建struts2框架时jsp页面的如果struts.xml文件中配置了namespace="/login"上面的action属性不能加.action后缀如果struts.xml文件中没有配置namespace则需要加上.action * index.jsp直接指向login.jsp,通过访问.....
分类:
移动开发 时间:
2014-07-27 21:36:25
阅读次数:
227
上篇说到通过result.class.php来分流,因为三个类都继承了shape这个类,让我们来看一下,面向对象中的继承。shape.class.shape文件'.$message.'必须为非负值的数>字,而且不能为空'; return false...
分类:
Web程序 时间:
2014-07-27 10:20:12
阅读次数:
234
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=2048一开始用的System.out.printf("%.2f%%\n", result)输出,PRESENTATION ERROR. 换成System.out.println(String.format...
分类:
编程语言 时间:
2014-07-26 17:02:31
阅读次数:
287
客户端设计
1、如何绘制?
分上下两层,下层为最终图片,上层尺寸和下层一致,并将上层分割为 m 行 n 列的方格。
2、方格位置如何设定?
m 行 n 列的方格,设定左上角坐标为(0,0),那么最右下角坐标为( (m-1) , (n-1) )。
3、如何定义方格对象,及方格拥有什么方法和属性?
方格Pane有4个属性:
location...
分类:
其他好文 时间:
2014-07-26 15:25:22
阅读次数:
227
atitit.表单验证的dsl 本质跟 easyui ligerui比较
1. DSL 声明验证 1
2. 自定义规则 1
3. 正则表达式验证,可以扩展实现 2
4. 犯错误消息提示,generic canBeEmpty is good 3
5. Prevent the form to submit when invalid 3
6. 为空则不验证,不为空则验证,的实现 5
...
分类:
其他好文 时间:
2014-07-26 15:09:30
阅读次数:
316
#region 获取真实ip/// /// 获取真实ip/// /// public static string GetRealIP(HttpRequest request){string result = String.Empty;result = request.ServerVariab...
分类:
其他好文 时间:
2014-07-26 14:08:35
阅读次数:
180