- 博客(4)
- 收藏
- 关注
转载 使用引用重载
voidf(inti){cout<<"int";}voidf(int&i){cout<<"int&";}intmain(){intx=2;f(x);return0;} s...
2017-12-11 14:51:00 128
转载 我的排序算法
冒泡 时间复杂度 n*(n-1)/2 空间复杂度 1;voidsortint(int*a,intcount){for(inttop=0;top<count;top++)for(intseek=top+1;seek<count;seek++)if(*(a+top)&...
2017-12-11 14:51:00 164
转载 linux 系统编程 进程
进程进程号一般不重复使用空闲进程 pid 0 ,内核运行的第一个进程 init pid 1.内核搜索init的顺序,如果找不到,内核就会发出panic挂起/sbin/init/etc/init/bin/etc/bin/sh进程号最大值32768 老unix用16位计算pid,可以在/proc/kernel/pid_max的值修改#incl...
2017-11-17 18:13:00 96
转载 linux 系统编程 文件IO
Fileio1.open() 系统调用头文件 #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h>原型 int open(const char * name,int flags); int open(const char * nam...
2017-11-16 15:00:00 98
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人