上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页
摘要: 1: /* 2: author:justinzhang 3: email:uestczhangchao@gmail.com 4: time:2012-8-19 9:44:46 5: des.: to left rotate a string,e.g, abcedef->cedefab 6: */ 7: 8: #include <iostream>... 阅读全文
posted @ 2012-09-01 23:20 justinzhang 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 1: /* 2: @@ 3: Author: Justinzhang 4: Email: uestczhangchao@gmail.com 5: time: 2012-9-1 21:40:13 6: desc: find the max sum of sub arrys; This file was cr... 阅读全文
posted @ 2012-09-01 23:19 justinzhang 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1: /* 2: @@ 3: Author: justinzhang 4: Email: uestczhangchao@gmail.com 5: Time: 2012-9-1 20:37:37 6: desc: double list related code 7: */ 8: #include <iostream> 9: #inc... 阅读全文
posted @ 2012-09-01 23:17 justinzhang 阅读(218) 评论(0) 推荐(0) 编辑
摘要: /*@@author:justinzhangemail:uestczhangchao@gmail.comtime:2012-9-1 18:51:44desc: all the list related operation will be place here; including: 1> combine_list(list<type> *l1, list<type>* l2);... 阅读全文
posted @ 2012-09-01 23:16 justinzhang 阅读(217) 评论(0) 推荐(0) 编辑
摘要: /************************************************************************* Author:justinzhang* Email:uestczhangchao@gmail.com* Time:2011年5月26日19:42:29* Discription:百度之星-05年,第一题,一个整数可以表示为n个连续整数之和。****... 阅读全文
posted @ 2012-09-01 23:14 justinzhang 阅读(233) 评论(0) 推荐(0) 编辑
摘要: lsps: list paging space 主要使用的命令参数有: lsps –a:显示交换区的分布信息 lsps -s:显示交换区的使用信息 slibclean:清除处理程序遗留的旧分页信息 由于没有root权限,截图如下: smit mkps 建立交换区空间信息 swapon -a ... 阅读全文
posted @ 2012-08-11 23:18 justinzhang 阅读(1158) 评论(1) 推荐(0) 编辑
摘要: 由于我的PC机装不上AIX的环境,所以找了一个免费的AIX终端账号来学习AIX的基本命令。 记得在大二的时候,上大型机的课,专门学习了AIX相关的命令,还过了AIX最基本的认证,但是在沙河校区,一群人在计算机的机房里面,还去看了我们学院的镇院之宝--IBM大型机,当时觉得好牛逼啊~~ 由于很久没有碰AIX了,现在找了一个免费的终端账号,开始重温AIX的基本命令~telnet unixchina.uicp.cn 150usr/pss分别为: yuanzhi/unixchina 注:上面的账号我是从,http://www.ixpub.net/thread-3190605-1-1.html 上找.. 阅读全文
posted @ 2012-08-11 22:08 justinzhang 阅读(688) 评论(0) 推荐(0) 编辑
摘要: 使用getrlimit函数 可通过ulimit –n 1024来修改可打开文件的数量: ulimit修改的数量其实是soft limit的数量,hard limit的数量在目前的系统中一般都是无穷大(似乎很荒唐),所以你的进程可以打开文件的数量只是受到你硬件环境的制约。 如果超过了sort limit,只会抛出一个异常,你用ulimit -n一改 ,这个限制就没有了~~ 阅读全文
posted @ 2012-08-04 21:32 justinzhang 阅读(2025) 评论(0) 推荐(0) 编辑
摘要: 上午和同学一起讨论指针和引用的区别,其实大家都知道是怎么的。只是一直以来都没有证据,一直都没有深入下去,看看下层的汇编究竟是怎么回事?写了如下的代码,用VS2008生成可执行程序,然后用ollyDbg进行调试; #include <iostream>using namespace std;int main(){ int x = 0; int *px = &x; int &rx =... 阅读全文
posted @ 2012-04-26 15:55 justinzhang 阅读(2756) 评论(0) 推荐(1) 编辑
摘要: /*Author:JustinZhangEmail:uestczhangchao@gmail.comTime:2012年4月22日23:39:40desc:高精度加法*/#include <iostream>#include <cstring>using namespace std;/*a、b为字符数组,内部存储了加数和被加数,ans用来存放最终结果,也为字符数组*/void arbitary_add(const char *a, const char *b,char *ans){ int lena = strlen(a); int lenb = strlen(b); 阅读全文
posted @ 2012-04-23 00:16 justinzhang 阅读(438) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 20 下一页