摘要:
1: /* 2: author:justinzhang 3: email:uestczhangchao@gmail.com 4: time:2012-8-30 16:58:38 5: desc:for the practice of interview problem 6: */ 7: #include <iostream> 8: using na... 阅读全文
posted @ 2012-09-01 23:41
justinzhang
阅读(289)
评论(0)
推荐(0)
摘要:
1: //file :4pqueue-test.cpp 2: #include <queue> 3: #include <iostream> 4: #include <algorithm> 5: using namespace std; 6: 7: int main() 8: { 9: //test priority queue..... 阅读全文
posted @ 2012-09-01 23:40
justinzhang
阅读(268)
评论(0)
推荐(0)
摘要:
1: /* 2: author:justinzhang 3: email:uestczhangchao@gmail.com 4: time:2012-8-23 10:28:53 5: desc: value_type , from <the annotated stl source>, chapter 3, p86 6: iterator_traits wil... 阅读全文
posted @ 2012-09-01 23:38
justinzhang
阅读(234)
评论(0)
推荐(0)
摘要:
1: /* 2: author:justinzhang 3: email:uestczhangchao@gmail.com 4: time:2012-8-22 16:23:08 5: desc: mmap()practice from man mmap 6: */ 7: #include <sys/mman.h> 8: #include <sys/... 阅读全文
posted @ 2012-09-01 23:35
justinzhang
阅读(451)
评论(0)
推荐(0)
摘要:
1: /* 2: @@ 3: Author: JustinZhang 4: Email: uestczhangchao@gmail.com 5: Time: 2012-9-1 23:32:22 6: desc: Example from man, write by hand, test under ubu... 阅读全文
posted @ 2012-09-01 23:34
justinzhang
阅读(278)
评论(0)
推荐(0)
摘要:
1: /* 2: author:justinzhang 3: email:uestczhangchao@gmail.com 4: time:2012-8-22 18:50:23: 5: desc: a buggy program from bbs.qshpan.com, i use strerror(errno) to locate 6: the proble... 阅读全文
posted @ 2012-09-01 23:31
justinzhang
阅读(1058)
评论(0)
推荐(0)
摘要:
1: /* 2: author:justinzhang 3: email:uestczhangchao@gmail.com 4: time:2012-8-30 22:53:33 5: desc: from a interview question, fork plus printf buffer is a littel tricky~~ 6: */ 7: ... 阅读全文
posted @ 2012-09-01 23:30
justinzhang
阅读(181)
评论(0)
推荐(0)
摘要:
1: /* 2: Author:Justinzhang 3: email:uestczhangchao@gmail.com 4: time:2012-8-30 22:17:23 5: desc:fork problem, from www.qshpan.com 6: */ 7: 8: #include <stdio.h> 9: #inclu... 阅读全文
posted @ 2012-09-01 23:29
justinzhang
阅读(307)
评论(0)
推荐(0)
摘要:
1: /* 2: author:justinzhang 3: email:uestczhangchao@gmail.com 4: time:2012-8-30 18:54:01 5: desc: binary search from the aocp p380 6: */ 7: 8: #include <iostream> 9: #incl... 阅读全文
posted @ 2012-09-01 23:28
justinzhang
阅读(1728)
评论(0)
推荐(0)
摘要:
1: /* 2: author:justinzhang 3: email:uestczhangchao@gmail.com 4: time:2012-8-20 15:52:27 5: des.:using non recursive method to traverse binary tree 6: */ 7: #include <iostream> ... 阅读全文
posted @ 2012-09-01 23:26
justinzhang
阅读(297)
评论(0)
推荐(0)