1. CREATE USER语法:CREATE USER 'username'@'host' IDENTIFIED BY 'password'; 例子: CREATE USER 'dog'@'localhost' IDENTIFIED BY '123456'; ...
分类:
数据库 时间:
2015-03-02 20:49:50
阅读次数:
273
路由信息协议RIP(Routing Information Protocol)的简称,它是一种基于距离矢量(Distance-Vector)算法的协议,使用跳数作为度量来衡量到达目的网络的距离。RIP主要应用与规模较小的网络中。学习目标:
1. 掌握RIP的基本工作原理
2. 掌握RIP的配置路由信息协议——RIP
RIP是一种比较简单的内部网关协议。RIP使用了基于距离矢量的贝尔曼 -福特算...
分类:
其他好文 时间:
2015-03-02 19:12:57
阅读次数:
250
Yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及CentOS中的Shell前端软件包管理器。基于RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载、安装....
分类:
其他好文 时间:
2015-03-02 19:02:19
阅读次数:
133
话说小镇上开了一家宠物食品店,小动物们可以去买零食吃,大家都非常高兴,猫咪啊,狗狗啊,猪猪啊……都约好了一起去!
/*
* 这是一只Dog类,由于门口没有写规范,它们不知道自己要说什么
* */
public class DogPet {
}
/*
* 这是一只Cat类,由于门口没有写规范,它们也不知道自己要说什么
* */
public class Ca...
分类:
编程语言 时间:
2015-03-02 16:54:14
阅读次数:
188
11796 - Dog Distance
题目大意
甲和乙两条狗分别沿着给定的折线匀速奔跑,同时出发、同时到达,试计算甲和乙在奔跑过程中的最远距离和最近距离的差。
解题思路
模拟整个过程,把总过程分割成一个个子过程:甲和乙的路线都是一条线段,因为运动是相对的,因...
分类:
其他好文 时间:
2015-03-01 13:19:01
阅读次数:
180
题目Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You have the following 3 operations permitted on a word:a)...
分类:
其他好文 时间:
2015-03-01 13:18:01
阅读次数:
124
在信息论中,两个等长字符串之间的汉明距离是两个字符串对应位置的字符不同的个数。 1 #include 2 /*给定两个字符串,求两个字符串的汉明距离*/ 3 int hamming_distance(char *s1, char *s2) 4 { 5 int i; 6 int di...
分类:
其他好文 时间:
2015-03-01 13:11:11
阅读次数:
122
A gas station has to be built at such a location that the minimum distance between the station and any of the residential housing is as far away as po...
分类:
其他好文 时间:
2015-03-01 08:52:30
阅读次数:
186
题目链接:http://poj.org/problem?id=1986Farmer John's cows refused to run in his marathon since he chose a path much too long for their leisurely lifestyle...
分类:
其他好文 时间:
2015-03-01 00:13:26
阅读次数:
239
#!/usr/local/bin/ruby?-w
#
#
#
def?call_each
???animals?=?%w{ant?bee?cat?dog?elk}
???for?animal?in?animals
?????yield?animal
???end
end
call_each?{|animal_block|?puts?...
分类:
其他好文 时间:
2015-02-27 15:21:36
阅读次数:
162