会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
生命的意义在于追求
博客园
首页
新随笔
联系
管理
2017年7月26日
linux 常用命令
摘要: 1. 查看系统内存 2. 查看系统IPC
阅读全文
posted @ 2017-07-26 16:29 时过境迁。
阅读(88)
评论(0)
推荐(0)
2017年7月25日
linux-PS1 提示符设置
摘要: PS1就是命令提示符,当我们执行某个命令后,需要重新显示 提示符时,会读取 PS1这个变量 符号意义 ` `
阅读全文
posted @ 2017-07-25 17:52 时过境迁。
阅读(117)
评论(0)
推荐(0)
apue-线程的标识,创建,终止
摘要: 1. 线程标识 每个线程有个线程ID 线程ID用 pthread_t 数据类型表示,是一个非负整数 1. 线程比较函数 2. 线程可通过调用 pthread_self 函数获得自身线程ID 2. 线程创建 在POSIX线程下,程序运行时,也是以单进程中的单个线程启动。 1. 新增线程函数 pthre
阅读全文
posted @ 2017-07-25 17:51 时过境迁。
阅读(163)
评论(0)
推荐(0)
2016年12月6日
C++ Tips
摘要: 1. explicit 如果构造函数接受1个实参,实际定义了转化此类类型的隐式转化机制,称这种构造函数为 转换构造函数 编译器只会执行一步的类型转换 将构造函数声明为 explicit ,抑制构造函数的隐式转换 explicit 构造函数只能用于直接初始化(不能用于拷贝初始化=)
阅读全文
posted @ 2016-12-06 14:32 时过境迁。
阅读(88)
评论(0)
推荐(0)
2016年12月2日
排序算法-快速排序
摘要: ```c / ===================================================================================== Filename: quickSort.c Description: 快速排序 Version: 1.0 Crea
阅读全文
posted @ 2016-12-02 17:10 时过境迁。
阅读(146)
评论(0)
推荐(0)
排序算法-归并排序
摘要: ```c / ===================================================================================== Filename: merge.c Description: 归并排序 Version: 1.0 Created:
阅读全文
posted @ 2016-12-02 17:09 时过境迁。
阅读(97)
评论(0)
推荐(0)
排序算法-堆排序
摘要: ```c #include void sift(int a[],int k ,int m); //调整堆 void create_heap(int a[],int n); //创建堆 void heap_sort(int a[],int n); //堆排序 int main(int argc,char *argv[]){ int a[11]; int n=10; int i; p...
阅读全文
posted @ 2016-12-02 17:08 时过境迁。
阅读(119)
评论(0)
推荐(0)
排序算法-希尔排序
摘要: ```c / ===================================================================================== Filename: shellSort.c Description: 希尔排序 Version: 1.0 Crea
阅读全文
posted @ 2016-12-02 17:02 时过境迁。
阅读(137)
评论(0)
推荐(0)
排序算法-选择排序
摘要: ```c / ===================================================================================== Filename: selectSort.c Description: 选择排序 Version: 1.0 Cre
阅读全文
posted @ 2016-12-02 17:01 时过境迁。
阅读(117)
评论(0)
推荐(0)
排序算法-插入排序
摘要: ```c / ===================================================================================== Filename: insertionSort.c Description: 插入排序 Version: 1.0
阅读全文
posted @ 2016-12-02 16:58 时过境迁。
阅读(109)
评论(0)
推荐(0)
下一页