- 博客(11)
- 资源 (29)
- 收藏
- 关注
转载 奇妙的typename
<br />首先是一种解释:<br /> <br />1, 什么地方使用?用在模板定义里,标明其后的模板参数是类型参数。<br /> 例如<br /> template<typename T, typename Y><br />T foo(const T& t, const Y& y){//....};<br />template<typename T><br />class CTest<br />{<br />private:<br /> T t;<br />public:<br /> //...
2010-06-30 11:13:00
732
1
原创 今日e语-6月30日
<br /><br />1. Everybody is a star in the sky. No matter you are eminent or common people, you can find your place. Once you give off light, there will be opportunity for your brilliance.<br /> 每个人都是天空中的一颗星,无论显赫的,还是普通的,都能找到自己的位置。只要闪烁着,就有辉煌的机会!<br />2. T
2010-06-30 09:43:00
457
转载 auto_ptr 解释
<br />template <class X> class auto_ptr;<br /> <br />Automatic Pointer<br />This class provides a limited garbage collection facility for pointers, by allowing pointers to have the elements they point to automatically destroyed when the auto_ptr object is
2010-06-29 15:37:00
527
转载 vim显示行号、语法高亮、自动缩进,编译的设置
在UBUNTU中vim的配置文件存放在/etc/vim目录中,配置文件名为vimrc在Fedora中vim的配置文件存放在/etc目录中,配置文件名为vimrc1、显示行号在文件末端添加一新行,输入 set nu2、语法高亮在文件中找到 "syntax on 这一行,去掉前面的双引号",双引号是注释的意思3、自动缩进在文件末尾添加一行,输入 set autoindent在添加一行,输入 set cindent其中 autoindent 是自动缩进; cindent是特别针对 C语言语法
2010-06-28 21:36:00
1841
原创 liyux中bootsect.s文件(0.01 kernel)
<br /> PC机加电ROM BIOS自检后,引导扇区(包含bootsect)由BIOS加载到内存0x7C00处,然后将自己移动到内存0x90000处。然后将setup模块(由setup.s编译成)从磁盘加载到内存,紧接着bootsect的后面位置(0x90200),然后利用BIOS中断0x13取磁盘参数表中当前启动引导盘的参数,接着在屏幕上显示"Loading system..."字符串,再将system模块从磁盘加载到内存0x10000开始的地方。随后确定根文件系统的设备号,若没有指定,则根据所
2010-06-28 19:38:00
553
原创 liyux中目录结构(0.11 kernel)
liyux---------------boot 系统引导汇编程序 -------------fs 文件系统 -------------include 头文件(*h) ----asm 与CPU体系结构相关的部分 ----linux linux内核专用部分
2010-06-28 15:09:00
442
原创 今日e语-6月28日
1. There are so many things in life requiring for consideration. Although there are flowers and claps at the back of victory, but what's more are the tears of failure and sweats of hard work. 人生需要考虑的还有很多很多,在胜利的背后虽然有鲜花和掌声,但更多的是失败的眼泪和勤奋的汗水!2. People with
2010-06-28 11:19:00
460
转载 (转)Source Insight 经典教程
Source Insight实质上是一个支持多种开发语言(java,c ,c 等等)的编辑器,只不过由于其查找、定位、彩色显示等功能的强大,常被我们当成源代码阅读工具使用。作为一个开放源代码的操作系统,Linux附带的源代码库使得广大爱好者有了一个广泛学习、深入钻研的机会,特别是Linux内核的组织极为复杂,同时,又不能像windows平台的程序一样,可以使用集成开发环境通过察看变量和函数,甚至设置断点、单步运行、调试等手段来弄清楚整个程序的组织结构,使得Linux内核源代码的阅读变得尤为困难。
2010-06-19 17:32:00
702
原创 unix----文件I/O
1. open函数 #include int open(const char *pathname, int oflag, .../* mode_t mode*/); 返回值:成功返回文件描述符,出错返回-1 oflag参数: O_RDONLY 只读打开 O_WRONLY 只写打开 O_RDWR 读写打开 (这三个常量有且只能指定一个,以下常量可选) O_APPEND 追加写 O_CREAT 若文件不存在就创建,需要第三个参数mode,这个的具体设
2010-06-14 22:09:00
677
原创 liyux-1(内核通用链表)
1. list_head类型结构:struct list_head{ struct list_head *next,*prev;};2. list_head使用(1)将一个数据结构本身串成链表 struct example_struct { struct list_head list; int priority; ... }; 创建list_head结构 I. struct list_head example_list;
2010-06-12 12:02:00
598
步行健身-运动健身
2013-02-05
健身工具-健身伴侣
2013-02-18
Magic Slimmer
2013-01-22
The.Design.Of.The.Unix.Operating.System part1
2011-03-09
三星s5578 root文件
2013-09-30
The.Design.Of.The.Unix.Operating.System.part3
2011-03-09
The.Design.Of.The.Unix.Operating.System.part2
2011-03-09
The.Design.Of.The.Unix.Operating.System.part7
2011-03-10
The.Design.Of.The.Unix.Operating.System.part5
2011-03-10
The.Design.Of.The.Unix.Operating.System.part6
2011-03-10
The.Design.Of.The.Unix.Operating.System.part4
2011-03-09
Receiver operating characteristics
2013-01-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人