Java解压缩技术的实现 GZIP ZIP BZIP2...
分类:
编程语言 时间:
2015-04-14 16:45:03
收藏:
0 评论:
0 赞:
0 阅读:
193
数据结构实用教程(JAVA版)
看完第一章 集合 结合书中代码 稍微修改做个小练习:
课程表类:
package com.chujianyun.com;
public class Table
{
private String key;
private String rest;
public Table()
{
}
public Table(Stri...
分类:
编程语言 时间:
2015-04-14 16:44:54
收藏:
0 评论:
0 赞:
0 阅读:
318
problem:
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
Above is a histo...
分类:
其他 时间:
2015-04-14 16:44:43
收藏:
0 评论:
0 赞:
0 阅读:
209
感觉是贪心。。。就用了贪心 结果ac了。。
和nyoj236完全一个类型的嘛。。。
#include
#include
int main()
{
int a[3005],visit[3005],n;
while(scanf("%d",&n)!=EOF)
{
if(n==-1)
break;
for(int i=0;i<n;i++)
scanf("%d",&a[i])...
分类:
其他 时间:
2015-04-14 16:44:33
收藏:
0 评论:
0 赞:
0 阅读:
100
从Spring2.0以后的版本中,Spring也引入了基于注解(Annotation)方式的配置,注解(Annotation)是JDK1.5中引入的一个新特性,用于简化Bean的配置,某些场合可以取代XML配置文件。开发人员对注解(Annotation)的态度也是萝卜青菜各有所爱,个人认为注解可以大大简化配置,提高开发速度,同时也不能完全取代XML配置方式,XML方式更加灵活,并且发展的相对成熟,这种配置方式为大多数 Spring开发者熟悉;注解方式使用起来非常简洁,但是尚处于发展阶段,XML配置文件和注解...
分类:
其他 时间:
2015-04-14 16:44:24
收藏:
0 评论:
0 赞:
0 阅读:
149
现在载入第三批代码——system模块,仍然使用 int 0x13 中断。
这批代码要比之前多很多,所以需要一点时间,于是出现了 “Loading system …”的字样。但是,此时操作系统的main函数还没有执行,所以它是用汇编来实现的。
system模块被加载至内存的 0x10000 往后的120KB空间中。这样整个操作系统的代码都加载至内存,最后要再次确定一下根设备号。什么是根设备?...
分类:
其他 时间:
2015-04-14 16:44:13
收藏:
0 评论:
0 赞:
0 阅读:
100
Java解压缩技术的实现 GZIP ZIP BZIP2
没啥好说的,都是些文件IO操作
package com.ljh.gzip;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStr...
分类:
编程语言 时间:
2015-04-14 16:44:03
收藏:
0 评论:
0 赞:
0 阅读:
358
Focus on technology, enjoy life!—— QQ:804212028
浏览链接:http://blog.csdn.net/y18334702058/article/details/44624305
主题:用户界面之SeekBar(拖动条)
-
SeekBar拖动条(实例):activity_main.xml:<?xml version="1.0" encoding="...
分类:
移动平台 时间:
2015-04-14 16:43:53
收藏:
0 评论:
0 赞:
0 阅读:
202
#include
int digitsum(int x)
{
int i;
if(x == 0)
return 0; //递归结束条件
else
{
i = x % 10;
x = x / 10;
}
return i+digitsum(x); //进行递归
}
int main()
{
int sum = 0;
sum = digitsum(1234);
...
分类:
其他 时间:
2015-04-14 16:43:43
收藏:
0 评论:
0 赞:
0 阅读:
110
Java解压缩技术的实现 GZIP ZIP BZIP2
与GZIP ZIP 不同的是BZIP2在Java中没有实现,BZIP2的实现是Apache提供的Commons-Compress.jar来实现的
关于 Commons Compress
请移步:http://commons.apache.org/proper/commons-compress/
还是直接上代码...
分类:
编程语言 时间:
2015-04-14 16:43:33
收藏:
0 评论:
0 赞:
0 阅读:
424
Android提供了一个称为Intent的强大易用的工具,Intent可以将应用转化为高等组件来使用并能比以前更好地重用代码。例如Android主屏幕和AnyCut广泛地使用Intent来创建快捷方式。虽然这种松耦合的API使用起来非常方便,但并不能保证你所发送的Intent一定会被另一个应用接收,这种情况会发生在某些特定的第三方应用程序,如Panoramio及它的RADAR Intent。
在...
分类:
其他 时间:
2015-04-14 16:43:23
收藏:
0 评论:
0 赞:
0 阅读:
217
#include
void reverse_string(char * string)
{
int count = 0;
char *p = string;
char temp;
while(*p != '\0')
{
count++; //计算字符串长度
p++;
}
if(count > 1)
{
temp = string[0]; //将最后一...
分类:
其他 时间:
2015-04-14 16:43:13
收藏:
0 评论:
0 赞:
0 阅读:
203
这是一个利用Ubuntu SDK来创建一个QML应用的视频。这个例程的原教程可以在我们的开发者网站“构建首个QML应用程序”。...
分类:
系统服务 时间:
2015-04-14 16:43:03
收藏:
0 评论:
0 赞:
0 阅读:
259
线索二叉树?什么是线索二叉树呢?一棵二叉树的左右叶子节点,注意是叶子节点,叶子的左结点和右结点一般为空,为了有效地利用其左右结点,我们将左结点指向他的前驱,将右结点指向他的后继!如图:
创建线索二叉树,遍历线索二叉树代码:
#include
#include
typedef char ElemType;
//线索存储标志位
//Link(0) 表示指向左右孩子的指针
//Thread...
分类:
其他 时间:
2015-04-14 16:42:53
收藏:
0 评论:
0 赞:
0 阅读:
288
暴搜一下就行了,确实也没法优化什么。 不过枚举一半,另一半用next_permutation()函数应该是会快一些的。
#include
#include
#include
#include
#include
#include
using namespace std;
int T,a[20],n,vis[20],tot;
int A[20],B;
void dfs(int cur) {
...
分类:
其他 时间:
2015-04-14 16:42:43
收藏:
0 评论:
0 赞:
0 阅读:
157
观看几个程序片段,分析行为
1、
public static boolean fun(){
try{
return false;
}finally{
return true;
}
}
System.out.println(fun());
2、
public static boolean fun(){
try{
return false;
}fina...
分类:
其他 时间:
2015-04-14 16:42:35
收藏:
0 评论:
0 赞:
0 阅读:
109
Html模板以及路由文件等服务器必备的功能虽然我们都可以自己实现,但在稳定性、可靠性、全面性方面肯定是有所遗漏的,所以,从今天起,Node的学习就进入了框架学习部分。
维基百科:
框架就是制定一套规范或者规则(思想),大家(程序员)在该规范或者规则(思想)下工作。或者说使用别人搭好的舞台来做编剧和表演。
第一个要学习的框架是在Node中被广泛应用的框架——Express。安装Express...
分类:
Web开发 时间:
2015-04-14 16:42:25
收藏:
0 评论:
0 赞:
0 阅读:
252
Servlet简介
Servlet是运行在web容器上的小程序。这种程序使用Java编程语言实现。在通信量大的服务器上,Servlet的优点在于它们的执行速度快于CGI程序,各个用户请求被激活成单个程序中的一个线程,而无需创建单独的进行,这意味着服务器端处理请求的系统开销明显降低。
Servlet生命周期
服务器收到客户端的请求后:
1.web容器判断相应的Servlet类是否已加...
分类:
编程语言 时间:
2015-04-14 16:42:19
收藏:
0 评论:
0 赞:
0 阅读:
240
问题描述In the New Year 2014, Xiao Ming is thinking about the question: give two integers N and K, Calculate the number of the numbers of satisfy the following conditions:
It is a positive integer and is n...
分类:
其他 时间:
2015-04-14 16:42:03
收藏:
0 评论:
0 赞:
0 阅读:
244
安装 git
sudo apt-get install git
查看git配置
git config --list
或者~/gedit .gitconfig
git设置代理(一般用于公司内部网络,如果上网正常,不需要设置)
git config --global http.proxy ip:port
git用户名
git config --global user.name ...
分类:
其他 时间:
2015-04-14 16:41:53
收藏:
0 评论:
0 赞:
0 阅读:
172