template //深度优先搜索DFS算法(全图)
void Graph::dfs(int s) { //assert: 0 <= s < n
reset(); int clock = 0; int v = s; //初始化
do //逐一检查所有顶点
if (UNDISCOVERED == status...
分类:
其他好文 时间:
2015-06-05 17:42:20
阅读次数:
142
一、ValueStack ?? ?1.ValueStack是一个接口,在struts2中使用OGNL(Object-Graph Navigation Language)表达式实际上是使用 ?? ??? ?实现了ValueStack接口的类OgnlValueStack.它是ValueStack的默认实现...
分类:
其他好文 时间:
2015-06-05 12:35:05
阅读次数:
115
Clone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.OJ's undirected graph serialization:Nodes are labeled uniq...
分类:
其他好文 时间:
2015-06-05 12:15:11
阅读次数:
112
题目:Clone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.OJ's undirected graph serialization:Nodes are labeled u...
分类:
其他好文 时间:
2015-06-05 11:33:38
阅读次数:
112
The Unique MST
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 22715
Accepted: 8055
Description
Given a connected undirected graph, tell if its minimum s...
分类:
其他好文 时间:
2015-06-05 10:12:05
阅读次数:
133
textbox:属性:text:文本selectedtext:获取或设置选中文本canundo:是否能够撤销方法:undo:撤销clearundo:清空撤销缓冲区cut:剪切copy:复制Paste:粘贴SelectAll:全选对话框:showdialog();显示对话框,返回一个dialogres...
分类:
其他好文 时间:
2015-06-05 09:57:58
阅读次数:
146
1, 批量杀某个程序比方某个程序叫 url_info.py, 起了若干个进程 。 高速查杀。先查看 ps aux | grep url_info.py确认没问题 ,能够杀,则批量killps aux | grep url_info.py | cut -c 9-15 | xargs kill2,...
分类:
系统相关 时间:
2015-06-04 20:46:03
阅读次数:
194
方法二
/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk ‘{print $2}’|tr -d “addr:”方法一
获取本机ip地址地址,并保存到变量中
arg=ifconfig eth0 |grep "inet addr"| cut -f 2 -d ":"|cut -f 1 -d " "
ipaddr=arge...
分类:
系统相关 时间:
2015-06-04 17:07:48
阅读次数:
201
$(‘#txtInput‘).bind("cut?copy?paste",function(e)?{
??????????e.preventDefault();
??????}); 或者 $(document).keydown(function(event)?{
????????if?(event.ctrlKey==true?&...
分类:
Web程序 时间:
2015-06-04 14:00:36
阅读次数:
186
提取IP地址:方法①:ifconfig eth3|grep Bcast|cut -d ":" -f2|cut -d " " -f1ifconfig: 显示或配置网络设备的命令 后面跟的是设备名。ifconfig eth3 的显示如下:grep: 后面接正则表达式,显示正则表达式出现的行ifconfi...
分类:
系统相关 时间:
2015-06-03 23:18:03
阅读次数:
313