在java中要想实现多线程,有两种手段,一种是继续Thread类,另外一种是实现Runable接口。对于直接继承Thread的类来说,代码大致框架是:123456789101112class类名 extendsThread{方法1;方法2;…publicvoidrun(){// other code...
分类:
编程语言 时间:
2014-08-13 14:36:46
阅读次数:
403
SWFUpload是一个批量上传插件,在HTML4.1里面,估计也只有Flash+javascript配合才能够做到了。先复制个重要的网址,这个应该是官方的文档了,相当齐全。http://leeon.me/upload/other/swfupload.html#uploadStart这个是格式比较好...
分类:
其他好文 时间:
2014-08-13 14:34:46
阅读次数:
331
今天使用mysql的时候,输入任意一条命令都会出:
Ignoring query to other database
这条错误信息,很是奇怪。后来才发现是登录数据库时,少了个-u的参数。。
正确的命令是:mysql -uroot -p我输入的是:
mysql -root -p
加上-u就可以了...
分类:
数据库 时间:
2014-08-13 13:09:26
阅读次数:
231
Problem BTime Limit : 2000/1000ms (Java/Other)Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 10Accepted Submission(s) : 7Font: Times Ne...
分类:
其他好文 时间:
2014-08-13 12:30:37
阅读次数:
183
~~~~
题意: 给你一个R*C的图,求其由图中连通‘#“所组成的矩形的个数。
注意:If the ships
were placed correctly (i.e., there are only rectangles that do not touch each other even with a corner), print the sentence "There are S shi...
分类:
其他好文 时间:
2014-08-13 01:16:24
阅读次数:
242
C - Picture
Time Limit:2000MS Memory Limit:10000KB 64bit IO Format:%I64d
& %I64u
Submit Status
Description
A number of rectangular posters, photographs and other pictures of ...
分类:
其他好文 时间:
2014-08-12 22:08:14
阅读次数:
460
最短路
Time Limit : 5000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)
Total Submission(s) : 23 Accepted Submission(s) : 17
Problem Description
在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t...
分类:
其他好文 时间:
2014-08-12 17:07:54
阅读次数:
207
http://acm.hdu.edu.cn/showproblem.php?pid=3863 No GamblingTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65568/32768 K (Java/Other...
分类:
其他好文 时间:
2014-08-12 10:13:04
阅读次数:
203
Five Minute TutorialThis tutorial uses XML. Note that the library is not specifically bound to XML, and any other supported format (such as INI or JSO...
分类:
其他好文 时间:
2014-08-12 00:20:33
阅读次数:
269
1、1)FILE—>NEW—>OTHER,选择DLL。 2)FILE-->NEW-->UNIT。然后写代码。在interface 后面加入 function countnum(i:integer):integer;export; 在implementation后面写函数的代码。 3)...
分类:
其他好文 时间:
2014-08-11 20:39:12
阅读次数:
171