摘要: 1. 查看系统内存 2. 查看系统IPC 阅读全文
posted @ 2017-07-26 16:29 时过境迁。 阅读(88) 评论(0) 推荐(0)
摘要: PS1就是命令提示符,当我们执行某个命令后,需要重新显示 提示符时,会读取 PS1这个变量 符号意义 ` ` 阅读全文
posted @ 2017-07-25 17:52 时过境迁。 阅读(117) 评论(0) 推荐(0)
摘要: 1. 线程标识 每个线程有个线程ID 线程ID用 pthread_t 数据类型表示,是一个非负整数 1. 线程比较函数 2. 线程可通过调用 pthread_self 函数获得自身线程ID 2. 线程创建 在POSIX线程下,程序运行时,也是以单进程中的单个线程启动。 1. 新增线程函数 pthre 阅读全文
posted @ 2017-07-25 17:51 时过境迁。 阅读(163) 评论(0) 推荐(0)
摘要: 1. explicit 如果构造函数接受1个实参,实际定义了转化此类类型的隐式转化机制,称这种构造函数为 转换构造函数 编译器只会执行一步的类型转换 将构造函数声明为 explicit ,抑制构造函数的隐式转换 explicit 构造函数只能用于直接初始化(不能用于拷贝初始化=) 阅读全文
posted @ 2016-12-06 14:32 时过境迁。 阅读(88) 评论(0) 推荐(0)
摘要: ```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)