#vim:tabstop=4shiftwidth=4softtabstop=4
#Copyright2010UnitedStatesGovernmentasrepresentedbythe
#AdministratoroftheNationalAeronauticsandSpaceAdministration.
#Copyright2011JustinSantaBarbara
#AllRightsReserved.
#Copyright(c)2010CitrixSystems,Inc.
#
#Licensed..
分类:
数据库 时间:
2014-05-27 04:03:25
阅读次数:
626
vart="<%=request.getParameter("do")%>";
alert(t);
分类:
Web程序 时间:
2014-05-27 03:54:38
阅读次数:
209
首先看一段乱码的程序:
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//0设置编码
request.setCharacterEncoding("UTF-8");
String u...
分类:
其他好文 时间:
2014-05-23 07:42:10
阅读次数:
227
Saruman's Army
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 3519
Accepted: 1787
Description
Saruman the White must lead his army along a straight path...
分类:
其他好文 时间:
2014-05-22 10:09:49
阅读次数:
271
Fence Repair
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 24153
Accepted: 7703
Description
Farmer John wants to repair a small length of the fence aroun...
分类:
其他好文 时间:
2014-05-22 07:55:44
阅读次数:
255
既然jsp和servlet是等价的,在jsp中可以使用内置对象,那么在servlet中也可以使用。
1.获得out对象
可以使用如下代码获得out对象:
import java.io.PrintWriter;
...
public void doGet(HttpServletRequest request,HttpServletResponse response)throws
Ser...
分类:
编程语言 时间:
2014-05-22 07:53:54
阅读次数:
230
常量对象与常量成员函数来防止修改对象,实现最低权限原则。可以用关键字const来指定对象是不可修改的,任何修改该对象的企图,都会导致编译错误。例如:constTimenoon(12,0,0);声明一个Time类的常量对象noon,并将它初始化为中午12点。C++不允许在常量对象上调用成员函数,除非成...
分类:
其他好文 时间:
2014-05-22 06:39:25
阅读次数:
229
class Solution {public: int maxProfit(vector
&prices) { int len = prices.size(); if (len maxv) { maxv = cur; ...
分类:
其他好文 时间:
2014-05-22 05:09:49
阅读次数:
256
Definitions:?StressTests the server –Peak volume
over a short span of time?LoadTests the database –Largest load the database can
handle at one time?Vo...
分类:
其他好文 时间:
2014-05-22 01:29:01
阅读次数:
338
题目:We all know that Bin-Laden is a notorious
terrorist, and he has disappeared for a long time. But recently, it is reported
that he hides in Hang Zho...
分类:
其他好文 时间:
2014-05-22 01:09:55
阅读次数:
328