IP 是 TCP/IP 协议族中最为核心的协议。所有的 TCP、UDP、ICMP 和 IGMP 数据都是以 IP 数据报格式传输。IP 协议处于网络层,网络层主要是实现点对点的通信。IP 协议是一种不可靠、无连接的协议。不可靠即不能保证 IP 数据报能够成功到达目的端,在传输过程中发生某种错误时,IP 协议会丢弃数据报,然后发送 ICMP 消息给信源端,其他任何要求的可靠性必须由上层来提供。无连接即 IP 协议并不维护任何关于后续数据报的状态信息,每个数据报都是相互独立的。因此,IP 数据报可以不按顺序接收...
分类:
其他好文 时间:
2014-11-24 22:37:17
阅读次数:
313
项目有多人协作的时候需要使用版本管理工具,常用的版本控制软件有git和svn。
git的官网地址:http://git-scm.com/
svn地址:http://subversion.apache.org/...
分类:
其他好文 时间:
2014-11-24 22:35:17
阅读次数:
252
打表,把所有的素数找出来,并且还要把那些数是素数标记下
Difference Between Primes
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2281 Accepted Submission(s): 642
...
分类:
其他好文 时间:
2014-11-24 22:34:56
阅读次数:
276
1. 使用FragMent是因为 4.0.3之后 ,摒弃了TabActivity这种用法,
Demo 效果图:
先上布局XML R.layout.activity_main
[html] view
plaincopy
xml version="1.0" encoding="utf-8"?>
TabHo...
分类:
其他好文 时间:
2014-11-24 22:35:38
阅读次数:
377
在VMWare虚拟机中安装好了CentOS操作系统,为了后面即将安装的Hadoop能够正常运行,还需要对CentOS操作系统进行相关的配置。...
分类:
其他好文 时间:
2014-11-24 22:36:13
阅读次数:
284
leetcode-Binary Tree Level Order Traversal 二叉树层序遍历
#include
#include
using namespace std;
typedef struct BiTree
{
int val;
struct BiTree *lchild;
struct BiTree *rchild;
}BiTree;
void main(...
分类:
其他好文 时间:
2014-11-24 22:35:13
阅读次数:
202
Number Sequence
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 34391
Accepted: 9879
Description
A single positive integer i is given. Write a program to f...
分类:
其他好文 时间:
2014-11-24 22:33:34
阅读次数:
266
Problem Description
Give you three integers n, A and B.
Then we define Si = Ai mod B and Ti = Min{ Sk | i-A = 1}
Your task is to calculate the product of Ti (1
不描述题意了,三行英文挺明了的,今天刚学单调队列...
分类:
其他好文 时间:
2014-11-24 22:35:31
阅读次数:
262
Hadoop读书笔记(五)MapReduce统计单词demo...
分类:
其他好文 时间:
2014-11-24 22:35:16
阅读次数:
281
同一局域网内电脑访问Tomcat服务器的方法...
分类:
其他好文 时间:
2014-11-24 22:34:06
阅读次数:
276
Oil Deposits
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 13013 Accepted Submission(s): 7540
Problem Description
The GeoSurvC...
分类:
其他好文 时间:
2014-11-24 22:31:38
阅读次数:
188
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
For example:
Given binary ...
分类:
其他好文 时间:
2014-11-24 22:31:45
阅读次数:
196
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).
For example:
Given binary tree {3,9,20,#,#,15,7},
3
/ 9 20
...
分类:
其他好文 时间:
2014-11-24 22:33:13
阅读次数:
272
cloc 是一个 perl 脚本,它可以统计很多种编程语言的代码文件中的空行、注释以及实际的代码行数。
相关网站:
http://cloc.sourceforge.net/
http://sourceforge.jp/projects/sfnet_cloc/releases/
安装
环境 windows 7 + Vmware Player 6.0 + fedora 18(linu...
分类:
其他好文 时间:
2014-11-24 22:30:55
阅读次数:
624
方法重载注意的问题
重载方法的参数分别是基本数据类型和对应的包装类
调用规则;
1.如果实参是基本数据类型
先找到带有该类型参数的方法,找不到则扩大范围继续找
前面的步骤找不到,则带有装箱之后的包装类型参数的方法
2.如果实参是包装类型
先找到该包装类型的方法,如果没有匹配,不会扩大范围,而是按照父子类的规则传参
如果上面的匹配找不到,则将包装类拆箱来匹配参数或扩大范围...
分类:
其他好文 时间:
2014-11-24 22:29:15
阅读次数:
319