安装完MyEclipse 2014,用JAX-WS的方式写了一个小段Web Service,用MyEclipse 自带的 Tomcat 部署没有问题,用我自己的,却出现下面的错误:java.lang.ClassNotFoundException: com.sun.xml.ws.transport.h...
分类:
系统相关 时间:
2014-09-11 23:41:12
阅读次数:
339
求最短路的算法最有名的是Dijkstra。所以一般拿到题目第一反应就是使用Dijkstra算法。但是此题要求的好几对起点和终点的最短路径。所以用Floyd是最好的选择。因为其他三种最短路的算法都是单源的。 输出字典序最小的路径则需要修改模版。#include#include#include#i...
分类:
其他好文 时间:
2014-09-06 21:14:03
阅读次数:
331
Transport Configuration (Transport 的 配置)我们先从一个简单的创建开始:final TCPNIOTransportBuilder builder = TCPNIOTransportBuilder.newInstance();final TCPNIOTranspor...
分类:
其他好文 时间:
2014-08-30 13:50:29
阅读次数:
174
eXosip2 network API General purpose API. Functions int eXosip_transport_set (osip_message_t *msg, const char *transport) int eXosip_guess_localip (str...
1)Exception :shutdown failed: ENOTCONN (Transport endpoint is not connected)
问题描述:
socket shutdonwOutput时出现异常,这个问题可能是多次关闭同一个socket所导致。我这里出现这个问题的原因是server端和client端都执行断开链接的操作:
一端(qt实现)执行: socket->d...
分类:
其他好文 时间:
2014-08-28 11:26:49
阅读次数:
152
Minimum Transport Cost
Time Limit: 2 Seconds Memory Limit: 65536 KB
These are N cities in Spring country. Between each pair of cities there may be one transportation track or none. Now ther...
分类:
其他好文 时间:
2014-08-27 13:07:27
阅读次数:
235
postfix无法启动,查看日志,发现日志提示master.cf文件109行有问题,打开文件一看109行是注释啊,怎么回事?日志如下:tail-f/var/log/maillog
Aug1815:56:11localhostpostfix/postfix-script[11639]:startingthePostfixmailsystem
Aug1815:56:11localhostpostfix/master[1164..
分类:
其他好文 时间:
2014-08-26 03:02:16
阅读次数:
169
Transport Goods
Time Limit: 2 Seconds Memory Limit: 65536 KB
The HERO country is attacked by other country. The intruder is attacking the capital so other cities must send supports to the...
分类:
其他好文 时间:
2014-08-21 21:13:34
阅读次数:
249
Problem DescriptionA certain local trucking company would like to transport some goods on a cargo truck from one place to another. It is desirable to ...
分类:
其他好文 时间:
2014-08-21 17:03:24
阅读次数:
246
题目链接:
huangjing
思路:
输出路径的最短路变种问题。。这个题目在于多组询问,那么个人觉得用floyd更加稳妥一点。还有就是在每个城市都有过路费,所以在floyd的时候更改一下松弛条件即可。。那么输出路径怎么办呢??我采用的是输出起点的后继而不是终点的前驱。。因为我们关心的是路径字典序最小,关心的是起点的后继。。。那么打印路径的时候就直接从前向后打印,这个和dijkstra的...
分类:
其他好文 时间:
2014-08-21 09:50:13
阅读次数:
296