//创建当前日期 NSDate *date = [NSDate date]; //创建日期格式类
NSDateFormatter *dateFormat = [[NSDateFormatter alloc]init]; //设置日期格式
[dateFormat ...
分类:
其他好文 时间:
2014-05-16 01:13:12
阅读次数:
325
原题:
题目解析:这个问题的实质是要我们按成访问二叉树的结点,并返回每层访问的结果,这里要求走Z字,其实就是一行正向一行反向。
/*
the kernel idea is visit a binary search tree in level and
the additional work we have to label the end of one level.
*/
v...
分类:
其他好文 时间:
2014-05-15 23:18:46
阅读次数:
515
Memory management1.listvmastatic void
mtest_dump_vma_list(void){ struct task_struct *task = current; //get the
task_struct of the current process stru...
分类:
系统相关 时间:
2014-05-15 22:29:30
阅读次数:
555
$(document).ready(function() {
alert("!@221212121212");}); window.onload =
function(){ alert("!@22245624562621212");} function init(){alert("!@5446...
分类:
Web程序 时间:
2014-05-15 21:21:10
阅读次数:
390
最近,在联想的G480 32位的机子上安装了CentOS 6.5。发现,有线网络始终是无法使用。
必须安装必要的驱动,搜集了资料,安装步骤如下:
1. 必备的软件
安装前,需要下列的软件依赖包.
sudo yum install gcc gcc-c++ kernel-headers kernel-devel autoconf automake libtool c...
分类:
其他好文 时间:
2014-05-15 19:51:20
阅读次数:
321
linux的基本体系结构由下面两张图可以简单的概括(两张图是一样的,只是侧重点有点不同)
从上图得知,Linux由用户空间和内核空间两部分组成。内核空间与用户空间是程序执行的两种不同状态,通过系统调用和硬件中断能够完成从用户空间到内核空...
分类:
系统相关 时间:
2014-05-15 19:19:36
阅读次数:
455
实现数据结构的顺序表的类时,输入,改,删,查都可以,但是最后析构函数时持续出错错误提示“Windows 已在 数据结构_顺序表.exe 中触发一个断点”int
*elem=newint(LIST_INIT_SIZE);if(!elem)coutLIST_INIT_SIZE)cout>*(p+i);}...
1. 追蹤Kernel function
(以schedule()示範)先至/sys/kernel/debug/tracing# cat available_tracers確定有無
函式追蹤器(function)blk mmiotrace function_graph wakeup_rt wakeu...
分类:
其他好文 时间:
2014-05-15 17:50:00
阅读次数:
339
由于线性表中每个数据元素的类型相同,可以用C或C++语言中的一维数组来实现顺序表。#includeusingnamespacestd;#defineLIST_INIT_SIZE50classSqList{int*elem;//存′?储′¢空?间?基ù址·intlength;//当μ±前°长3¤度èi...
分类:
其他好文 时间:
2014-05-15 17:42:45
阅读次数:
232