首页 > 2014年08月11日 > 全部分享
JSP简明教程(一):JSP简介
JSP的全称是Java Server Pages。它的本质其实就是Servlet,在运行的过程中会编译成Servlet代码。在JSP中可以访问数据库,记录用户的选择信息,访问JavaBean组件。 JSP与CGI的差别。一、性能更加优越,JSP可以直接在HTML网页中嵌入动态的元素,而不需要单独引用CGI文件。二、JSP是已经编译好的,持续运行的程序,一次载入可以服务多次请求,而CGI每次都...
分类:Web开发   时间:2014-08-11 21:26:52    收藏:0  评论:0  赞:0  阅读:375
HDU2988 Dark roads 【最小生成树Kruskal】
Dark roads Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 583    Accepted Submission(s): 253 Problem Description Economic times th...
分类:其他   时间:2014-08-11 21:26:42    收藏:0  评论:0  赞:0  阅读:544
hdu 1181 变形课
hdu 1181 变形课 搜索 或者最短路(条条大道通罗马)...
分类:其他   时间:2014-08-11 21:26:33    收藏:0  评论:0  赞:0  阅读:341
a new Webcam Api Tutorial in C++ for Windows(Windows Media Foundation)--WMF
Foword from: http://www.dreamincode.net/forums/topic/347938-a-new-webcam-api-tutorial-in-c-for-windows/page__st__0%26 Well, A long time ago I introduced a Webcam Tutorial. It was for Video...
分类:编程语言   时间:2014-08-11 21:26:23    收藏:0  评论:0  赞:0  阅读:476
[Android]WebView method must on same thread
问题描述 最近代码里使用了webview,主要是使用webview load了远程的url。但是我从实现了javascript接口,调用javascript中方法刷新url时,发现刷新代码没有实际效果。示例代码如下: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceSta...
分类:移动平台   时间:2014-08-11 21:26:12    收藏:0  评论:0  赞:0  阅读:434
POJ 3259 Wormholes(SPFA)
Description While exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-way path that delivers you to its destination a...
分类:其他   时间:2014-08-11 21:26:02    收藏:0  评论:0  赞:0  阅读:448
双链表&链表合并&多项式相加算法
//单链表的合并 //链表合并 //两个链表必须是有序的 #define Maxsize 5 typedef  int elemtype; typedef struct linklist {    elemtype data;    struct linklist *next; }Linklist;  //建立链表1 Linklist *CreateList1 () ...
分类:其他   时间:2014-08-11 21:25:53    收藏:0  评论:0  赞:0  阅读:480
Java安全管理器——SecurityManager
总的来说,Java安全应该包括两方面的内容,一是Java平台(即是Java运行环境)的安全性;二是Java语言开发的应用程序的安全性。由于我们不是Java本身语言的制定开发者,所以第一个安全性不需要我们考虑。其中第二个安全性是我们重点考虑的问题,一般我们可以通过安全管理器机制来完善安全性,安全管理器是安全的实施者,可对此类进行扩展,它提供了加在应用程序上的安全措施,通过配置安全策略文件达到对网络、...
分类:编程语言   时间:2014-08-11 21:25:42    收藏:0  评论:0  赞:11  阅读:16782
hdu 4638 Group (莫队算法)
题目大意: n个人的编号是从1 - n  ,现在他们无序的站成一排。 第 id 号人和 id-1  id +1 号人是朋友, 朋友之间可以组成group。 一个group的值等于他们人数的平方。 然后有m次询问,问给出的l r 之间能构成group值的和的最大值的group数。 思路分析: 首先,我们面临着假设你知道这个区间有多少个group 你能知道得到最大值的时候grou...
分类:其他   时间:2014-08-11 21:25:22    收藏:0  评论:0  赞:0  阅读:387
iOS音频播放 (一):概述 转
今天看到非常好的介绍音频开发的文章,转载一下  原文地址:http://msching.github.io/blog/2014/07/07/audio-in-ios/ 前言 从事音乐相关的app开发也已经有一段时日了,在这过程中app的播放器几经修改我也因此对于iOS下的音频播放实现有了一定的研究。写这个系列的博客目的一方面希望能够抛砖引玉,另一方面也是希望能帮助国内其他的i...
分类:移动平台   时间:2014-08-11 21:25:13    收藏:0  评论:0  赞:0  阅读:443
UVA 10986 Sending email(SPFA)
There are n SMTP servers connected by network cables. Each of the m cables connects two computers and has a certain latency measured in milliseconds required to send an email message. What is the sh...
分类:其他   时间:2014-08-11 21:25:03    收藏:0  评论:0  赞:0  阅读:483
poj 3070 Fibonacci (矩阵快速幂求斐波那契数列的第n项)
题意就是用矩阵乘法来求斐波那契数列的第n项的后四位数。如果后四位全为0,则输出0,否则 输出后四位去掉前导0,也。。。就。。。是。。。说。。。输出Fn%10000。 题目说的如此清楚。。我居然还在%和/来找后四位还判断是不是全为0还输出时判断是否为0然后 去掉前导0。o(╯□╰)o 还有矩阵快速幂的幂是0时要特判。 P.S:今天下午就想好今天学一下矩阵乘法方面的知识,这题...
分类:其他   时间:2014-08-11 21:24:53    收藏:0  评论:0  赞:0  阅读:383
UVA - 11986 Save from Radiation
Description J Save from Radiation Most of you are aware of Nuclear Power Plant Explosion at Fukushima after devastating earth quake and tsunami. Many people in Bangladesh ...
分类:其他   时间:2014-08-11 21:24:43    收藏:0  评论:0  赞:0  阅读:322
java集合学习一
1.Set存放的元素是无序的不可重复。 2.List存放的元素为有序可重复。 3.重写equals方法,一般最好重写hasCode方法,当对象作为key的时候及索引,会使用hasCode方法进行查找。 4.容器对象在调用remove,contains等方法时需要比较对象是否相等,这会涉及到对象类型的equals方法和   hashCode方法。对于自定义的类型,需要重写equals和has...
分类:编程语言   时间:2014-08-11 21:24:32    收藏:0  评论:0  赞:0  阅读:427
HDU 4406 GPA(网络流-最大费用流)
HDU 4406 GPA(网络流-最大费用流) 题目大意: 有m门课,n天,每天可以复习特定的几门课,每门课有学分,基础分,复习一次可以加分,绩点有计算公式,问你总绩点最多多少? 解题思路: 用最大费用流可以做。...
分类:其他   时间:2014-08-11 21:24:23    收藏:0  评论:0  赞:0  阅读:396
CUGBACM_Summer_Tranning5
A.Number Assignment UvaLive6434 简单题 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using ...
分类:其他   时间:2014-08-11 21:24:13    收藏:0  评论:0  赞:0  阅读:457
HDU 1503 Advanced Fruits (LCS,DP)
题意:给你两字符串s1,s2,用最短的字符串表示他们(公共字串输出一次)。 Sample Input apple peach ananas banana pear peach   Sample Output appleach bananas pearch dp[i][j] : 第一个字符串的前 i 个 ,和第二个字符串的前 j 个最...
分类:其他   时间:2014-08-11 21:24:02    收藏:0  评论:0  赞:0  阅读:449
poj 2549 --- 传说中的用“桶”防止HASH冲突
http://poj.org/problem?id=2549 维基百科有3Sum算法:https://en.wikipedia.org/wiki/3SUM sort(S); for i=0 to n-3 do a = S[i]; k = i+1; l = n-1; while (k<l) do b = S[k]; c = ...
分类:其他   时间:2014-08-11 21:23:53    收藏:0  评论:0  赞:0  阅读:461
POJ 3268 Silver Cow Party(SPFA)
Description One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1..N is going to attend the big cow party to be held at farm #X (1 ≤ X ≤ N). A total of M (1 ≤ M ≤ 100,000) unidirectio...
分类:其他   时间:2014-08-11 21:23:43    收藏:0  评论:0  赞:0  阅读:472
JavaScript省市二级联动
cities.xml  长春 吉林市 四平 松原 通化 沈阳 大连 鞍山 抚顺 济南 青岛 威海 烟台 潍坊 武汉 广水 孝感 荆州 黄石 鄂州 黄冈 city.html 二级联动 --请...
分类:编程语言   时间:2014-08-11 21:23:32    收藏:0  评论:0  赞:0  阅读:338
1754条   上一页 1 ... 6 7 8 9 10 ... 88 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!