1.int rand7() 2.{ 3. return rand()%7+1; 4.} 5. 6.int rand10() 7.{ 8. int x=0; 9. do 10. { 11. x=(rand7()-1)*7+rand7(); 12. } 13. while(x>40); 14. retu...
分类:
其他好文 时间:
2014-07-29 20:53:23
阅读次数:
156
今天看了一段话觉得挺有道理的。内容如下:
You got a dream,you gotta protect it.People can't do something themselves,they wanna tell you can't do it .If you want something,got get it.Period.
(如果你有梦想的话,就要去捍卫它。当别人做不到的...
分类:
其他好文 时间:
2014-07-29 18:01:53
阅读次数:
246
1,Struts是MVC框架的一种实现,通过Struts的ActionForm可以完成数据的验证,通过Action可以完成与Servlet一样的功能。
2,Struts的所有请求都是通过*.do的路径提交到相应的Action上去的,所有的Action都需要在struts-config.xml文件进行配置。
3,在Struts中所有的资源信息都是通过ApplicationReso...
分类:
其他好文 时间:
2014-07-29 18:00:12
阅读次数:
237
How to do SSH Tunneling (Port Forwarding) In this post we will see how ssh works?, what is SSH tunneling? what is important of ssh tunnels and how to ...
分类:
其他好文 时间:
2014-07-29 17:04:22
阅读次数:
576
Smackdown breaks to Vickie Guerrero along with ghd australia online Dolph Ziggler that comes these do-Who's-That buy cheap ghd Hair Straighteners Chea...
分类:
其他好文 时间:
2014-07-29 16:50:42
阅读次数:
233
#!/bin/bash
#
#Judgingtheelementisafileorafolder
if[$#-lt1];then
echo"ERROE!!Usage:ckfile.shARGS1[ARGS2...]"
exit4
fi
foriin`seq1$#`
do
if[-f$1];then
echo$1isacommomfile
elif[-d$1];then
echo$1isadirectory
else
echo"$1isnotexsitorunknown!"
fi
shift
done知识..
分类:
其他好文 时间:
2014-07-29 16:01:19
阅读次数:
184
Description
Before ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes from Irreversibly Bound Money (IBM). The idea beh...
分类:
其他好文 时间:
2014-07-29 15:08:28
阅读次数:
232
if not Assigned(cxDBTreeList1.FocusedNode) then Exit;
// 上移方法:
with cxDBTreeList1 do
FocusedNode.MoveTo(FocusedNode.getPrevSibling, tlamInsert);
// 下移方法:
with cxDBTreeList1 do...
分类:
其他好文 时间:
2014-07-29 14:55:18
阅读次数:
218
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3329
回头重推式子
题解:http://blog.csdn.net/morgan_xww/article/details/6775853#reply
学到:
1、目前做的两道期望的状态转移方程都是从大向小推,定义方式:dp[i][j][k].... 满足i,j,k...
分类:
其他好文 时间:
2014-07-29 14:28:18
阅读次数:
264
http://poj.org/problem?id=1459
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1734
Power Network
Time Limit: 2000MS
Memory Limit: 32768K
Total Submissio...
分类:
Web程序 时间:
2014-07-29 14:25:08
阅读次数:
422