今天在整理资料的时候,翻出多年前在网上看到的一篇帖子,一个控制台的进度条,非常酷炫,原文出处-传送门。 记得在刚开始接触编程的时候,用控制台写些小工具玩,也喜欢将信息打印到屏幕上,看着不断闪动的屏幕觉得很酷,后来一次偶然的机会看到了这个进度条让控制台的输出又上了一个层次,感谢作者。 ...
分类:
其他好文 时间:
2016-11-26 02:27:32
阅读次数:
210
活动的启动模式 启动模式一共有四种,分别是 standard、singleTop、 singleTask 和 singleInstance,可以在 AndroidManifest.xml 中通过给<activity>标签指定 android:launchMode属性来选择启动模式。下面我们来逐个进行 ...
分类:
移动开发 时间:
2016-11-25 23:51:44
阅读次数:
288
文件上传 1 import java.io.File; 2 3 import org.apache.struts2.ServletActionContext; 4 5 import com.opensymphony.xwork2.ActionSupport; 6 7 public class Upl ...
分类:
Web程序 时间:
2016-11-25 23:25:57
阅读次数:
271
并查集合并 #include<iostream> using namespace std; const int MAX = 10010; int father[MAX],root[MAX]; int findfather(int x){ if(x==father[x]) return x; else ...
分类:
其他好文 时间:
2016-11-25 22:48:21
阅读次数:
187
转载:http://bbs.csdn.net/topics/390750169 1.方法一: 包含头文件 方法二: 使用QT5中一个宏 QStringLiteral ...
分类:
其他好文 时间:
2016-11-25 12:21:21
阅读次数:
216
jTopo是一款 2 D和3D模型展示的插件,不过目前文档不是很齐全,刚开始看的时候就有点懵了,因为你在网上很难找到jTopo的资料。下面我就介绍一下jTopo 的引用吧。 1、首先在官网上下载到jTopo的包,地址:http://www.jtopo.com/。并在html页面加以引用。 2、你可以 ...
分类:
其他好文 时间:
2016-11-25 12:13:31
阅读次数:
158
1.是什么?Bootstrap,来自 Twitter,是目前最受欢迎的前端框架,Bootstrap 是基于 HTML、CSS、JAVASCRIPT 的,它简洁灵活,使得 Web 开发更加快捷 Bootstrap 插件全部依赖 jQuery //lang属性指定当前页面所用的自然语言 注意是为浏览器自... ...
分类:
其他好文 时间:
2016-11-25 09:37:31
阅读次数:
123
1-9 : count:9 * len:1 10-99: count:90 * len:2 100-999: count:900 * len:3 1000-9999: count: 9000 * len:4 maintain a count, len, start ...
分类:
其他好文 时间:
2016-11-25 09:16:45
阅读次数:
206
DP 解法, Time Complexity: O(N^2) sort based on width or height, anyone is ok. After the sorting, for each envelope, those envelopes which can fit into t ...
分类:
其他好文 时间:
2016-11-25 07:33:38
阅读次数:
179
在JSP中设置超链接标签体后点击发现进入不了页面而是进入了下载页面,此时需要在你新建的超链接对应的Servlet中查看response响应头是否有设置,设置是否成功,如下代码: 在JSP页面设置如下超链接发现进入不了, <a href="<%= request.getContextPath()%>/ ...
分类:
Web程序 时间:
2016-11-25 00:06:42
阅读次数:
626