一.在<Linux系统中如何查看文件属性>中介绍了通过ls指令来查看文件的属性,具体如下: [命令] letuknowit@ubuntu:/$ cd /tmp letuknowit@ubuntu:/tmp$ touch test letuknowit@ubuntu:/tmp$ ls -al test [结果] rw-rw-r-- 1 letuknowit letuknowit 0 2012-03-08 04:33 test 上面结果部分显示的即为test文件的属性了,对于Linux系统中的文件…
Linux Kernel中所應用的數據結構及演算法 Basic Data Structures and Algorithms in the Linux kernel Links are to the source code on github. Linked list, doubly linked list, lock-free linked list. B+ Trees with comments telling you what you can't find in the textbooks…
读写文件这个,不常用,每次用的时候都会百度一下,每次写法还都不一样,所有总是记混.今天利用点时间总结下之前工程中用过的.以后就安照这种方法写了. 搞acmicpc的时候喜欢用freopen(),这个是c语言里面的用法如下: #include<stdio.h> int main(){ freopen("in.txt","r",stdin); freopen("out.txt","w",stdout); int n,m…