上一页 1 ··· 173 174 175 176 177 178 179 180 181 ··· 484 下一页
摘要: ServletContext sc = this.getServletConfig().getServletContext();ApplicationContext ac2 = WebApplicationContextUtils.getWebApplicationContext(sc);要检索的对... 阅读全文
posted @ 2015-12-11 09:45 phlsheji 阅读(242) 评论(0) 推荐(0) 编辑
摘要: SSH 骨架code:public String deleRubbishAd(){int deleADcount = 0;rubbishADtp = configDao.rubbishADtp();//数据库中的广告图片集合Map shujuku= new HashMap();File adfile... 阅读全文
posted @ 2015-12-11 08:13 phlsheji 阅读(243) 评论(0) 推荐(0) 编辑
摘要: string s = "abc";if ( s.back() == 'c' )...., 不支持back, 但是用VS2010好吧后来发现, string的back/front它是c++11加入到该列表, 所以gcc4.4不行然后gcc4.9, 也没有发现, 必须添加 -std=c++11工作 阅读全文
posted @ 2015-12-10 21:29 phlsheji 阅读(311) 评论(0) 推荐(0) 编辑
摘要: String.format()【演示样例具体解释】整理者:Vashon前言:String.format作为文本处理工具。为我们提供强大而丰富的字符串格式化功能,为了不止步于简单调用String.format("Hello %s","Vashon"... 阅读全文
posted @ 2015-12-10 20:27 phlsheji 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 1.简单工厂模式:决定由工厂对象创建的一个产品类别的实例,。简单工厂模式是工厂模式的家庭是最简单有效的模式,模式的一个特殊实现2.策略模式:定义一系列的算法,把它们一个个封装起来,而且是他们能够相互替换。使得算法能够独立于使用它的客户而变化。3.装饰模式:动态的给一个对象加入一些额外的职责,比生成子... 阅读全文
posted @ 2015-12-10 19:22 phlsheji 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1.没有对象的构造public class Test { public static int k = 0; public static int n = 99; public static int i = print("i"); static { ... 阅读全文
posted @ 2015-12-10 18:50 phlsheji 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 一. 前台(JS 面向对象)1. 定义SearchView对象functionSearchView(){}SearchView.prototype.setViewName=function(viewName){this.viewName=viewName;}SearchView.prototype.... 阅读全文
posted @ 2015-12-10 17:17 phlsheji 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 2014百度之星预赛(第二场)——Best FinancingProblem Description小A想通过合理投资银行理財产品达到收益最大化。已知小A在未来一段时间中的收入情况,描写叙述为两个长度为n的整数数组dates和earnings,表示在第dates[i]天小A收入earnings[i]... 阅读全文
posted @ 2015-12-10 15:50 phlsheji 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Document 输出结果 arr数组里全部的数字: arr数组里能够转成数字的: 把转成数字以后的,再取最大值: NaN所在的位置: 阅读全文
posted @ 2015-12-10 14:58 phlsheji 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 题目链接:Codeforces 437E The Child and Polygon题目大意:给出一个多边形,问说有多少种切割方法。将多边形切割为多个三角形。解题思路:首先要理解向量叉积的性质,一開始将给出的点转换成顺时针。然后用区间dp计算。dp[i][j]表示从点i到点j能够有dp[i][j]种... 阅读全文
posted @ 2015-12-10 13:42 phlsheji 阅读(295) 评论(0) 推荐(0) 编辑
上一页 1 ··· 173 174 175 176 177 178 179 180 181 ··· 484 下一页