9.1 使用列表 列表类型:跟数组一样,列表也是同质化的(homogeneous)。即所有元素都要是同种类型。 列表结构:所有列表由两部分组成:Nil 和 ::(cons)。 基本操作:主要有三个:head , tail , isEmpty 。这些都定义在List Object里。head 和...
分类:
其他好文 时间:
2014-12-05 14:16:30
阅读次数:
287
思路:记下第一个非空字符的位置temp1,记下头部空格的个数space_count_head以及尾部空格的个数space_count_tail。空格总数length_new=space_count_head+space_count_tail;将以temp1为起始位置,长度为length_new的字符...
分类:
其他好文 时间:
2014-12-05 00:28:01
阅读次数:
259
class Solution {public: string longestCommonPrefix(vector &strs) { int ind, tail, len, tmp; len = strs.size(); if(len == 0) re...
分类:
其他好文 时间:
2014-12-04 00:42:55
阅读次数:
171
昨天跑批量数据的程序时遇到oracle错误:
$tail -f INDB_ERROR_8.LOG
[Time]2014-12-01 04:10:31: activeAccountDeposit in oracle error: =ORA-01591: lock held by in-doubt distributed transaction 20.21.65527021...
分类:
其他好文 时间:
2014-12-02 22:41:06
阅读次数:
243
接下来安装图形日志的运行所需要的软件包Time::HiRes、File::Tail和rrdtool。注意安装顺序不能改换。extman自带了图形化日志的功能,我们需要安装rrdtool来实现出图分析:1、安装Time0-HiRes[root@mailsrc]#cdTime-HiRes-1.9721[root@mailTime-HiRes-1.9721]#perlMakefile.PL[r..
分类:
其他好文 时间:
2014-11-30 17:15:27
阅读次数:
234
系统环境centos6.5[root@jingjunwang]#uname-r2.6.32-431.el6.i686正式添加帐号:[root@jingjun/]#useraddwang#添加用户wang[root@jingjun/]#tail-l/etc/passwd#用tail命令查看passwd文件,-l显示倒数10行[root@jingjun/]#tail-l/etc/shadow#查看shadow密码文件"!!"代表还未设置..
分类:
系统相关 时间:
2014-11-28 18:27:35
阅读次数:
163
1. mv 命令:移动文件或目录mv ROOT /home/backup(将ROOT目录移动到/home/backup目录下)2. rm 命令:删除文件或目录rm -rf ROOT* (删除当前目录下,以ROOT开头的文件和目录)3. tail -f logs/catalina.out:查看tomc...
分类:
系统相关 时间:
2014-11-27 12:10:09
阅读次数:
160
#includeusing namespace std;int main(){ int a[10]={1,2,3,4,5,21,34,45,115,4121}; int f,tail=0,top=9,mid=(top+tail)/2; int n; cout>n; wh...
分类:
其他好文 时间:
2014-11-27 00:00:52
阅读次数:
367
-define(PAGECOUNT,3). %定义自己的页容量Pre = (Page -1) * ?PAGECOUNT, %页首 Tail = Page * ?PAGECOUNT + 1, %页尾 Query=ets:fun2ms(fun(Data=#process_state{number=N.....
分类:
其他好文 时间:
2014-11-26 06:37:21
阅读次数:
159
创建Animal对象11View Code创建Person对象,继承Animal11View Code删除Person的tail属性11View Code重置constructor11View Code对象冒充11View Code静态属性, undefined是正常的。11View Code11V...
分类:
其他好文 时间:
2014-11-26 01:03:08
阅读次数:
336