要将Servlet中的
response.setContentType("text/html;charset=utf-8")这行代码放在 PrintWriter out =
response.getWriter()之前。
分类:
Web程序 时间:
2014-04-29 23:03:34
阅读次数:
549
这里送上一道微软的笔试题,具体题目如下:Time Limit: 10000msCase
Time Limit: 1000msMemory Limit: 256MBDescriptionConsider a string set that each
of them consists of {0,...
分类:
其他好文 时间:
2014-04-29 21:23:55
阅读次数:
662
gcc在linux系统中,默认是没有安装gcc编译器的,可以通过命令rpm -q | grep
gcc来查看。安装命令为:yum -y install gcc安装后,编写一个.c结尾的文件。gcc
test.c就会默认输出一个a.out的输出文件,这个输出文件就是可执行文件。如果加上-o选项,则可以...
分类:
数据库 时间:
2014-04-29 18:11:03
阅读次数:
583
使用Runtime的addShutdownHook(thread)方法: 1 for(int
i=0; i<5; i++){ 2 System.out.println(i); 3 } 4 5 Thread th...
分类:
其他好文 时间:
2014-04-29 17:22:47
阅读次数:
311
2014-04-28
23:52题目:设计算法,找出一本书中某个单词的出现频率。解法:数就行了。代码: 1 // 17.9 Given a book, find out the
occurrences of any given words in it. 2 // Answer: 3 // 1....
分类:
其他好文 时间:
2014-04-29 16:00:32
阅读次数:
388
不推荐一个分区,而是推荐最起码的分区1、win 7系统2、文件和数据3、备份(分区大小与win
7系统分区相同)备份:本机+DVD(放在一个安全的地方,如朋友家、办公室抽屉)硬件更换较容易,但是数据和照片、视频很难!win
7在使用过程中要求重装系统(不损失数据),也可能要彻底重装(泪!!!!!)双...
2014-04-29
03:05题目:给定一个词典,其中某些词可能能够通过词典里其他的词拼接而成。找出这样的组合词里最长的一个。解法:Leetcode上有Word
Break这道题,和这题基本思路一致。代码: 1 // 18.7 Given a list of words, find out the...
分类:
其他好文 时间:
2014-04-29 14:30:17
阅读次数:
493
I had been waiting for the latest MySQL
connector for .NET to come out so I can move on to the new and sleek Visual
Studio 2012 for my projects. Found...
分类:
数据库 时间:
2014-04-29 14:17:54
阅读次数:
753
String field;@Testpublic void test01() { String a =
"aaa"; String b = "aaa"; String c = new String("aaa"); String d = new
String("aaa"); System.out.pr...
分类:
编程语言 时间:
2014-04-29 11:28:46
阅读次数:
391
题目: There are two sorted arrays A and B of size m
and n respectively. Find the median of the two sorted arrays. The overall run
time complexity should...
分类:
其他好文 时间:
2014-04-29 10:32:46
阅读次数:
359