随笔分类 -  C/C++

摘要:CPP Primer Plus v6 内存模型和命名空间 单独编译 头文件 Gurading programing 单独编译与链接 存储周期 Cpp采用四种存储方案: 自动存储持续性 函数临时变量 静态存储持续性 static (静态存储区) 动态存储持续性 new delete (堆) 线程存储持 阅读全文
posted @ 2021-10-05 18:31 司空亦墨 阅读(144) 评论(0) 推荐(0)
摘要:Makefile file makes compiling work more efficient, especially when it turns to solve some jobs with a complex structure. But it depends on the buildin 阅读全文
posted @ 2021-08-25 23:31 司空亦墨 阅读(119) 评论(0) 推荐(0)
摘要:Quciksort Mergesort Insertionsort Bubblesort Selectionsort Shellsort Heapsort Countsort Radixsort Summary Quciksort void quick_sort(vector<int> &nums, 阅读全文
posted @ 2021-08-25 23:24 司空亦墨 阅读(62) 评论(0) 推荐(0)
摘要:Data structure alignment is the way data is arranged and accessed in computer memory. It consists of three separate but related issues: data alignment 阅读全文
posted @ 2021-08-25 23:22 司空亦墨 阅读(990) 评论(0) 推荐(0)
摘要:Source File List: mylib.c mylib.h test.c mkdir library and cd library mkdir lib include vim include/mylib.h #ifndef __MYLIB_H__ #define __MYLIB_H__ in 阅读全文
posted @ 2021-08-25 23:19 司空亦墨 阅读(21) 评论(0) 推荐(0)
摘要:The Top 20 Cpp Tips of All Time By Danny Kalev Code style, memory management, performance enhancement, object-oriented design, and STL. 作为一条准则:使用代替<io 阅读全文
posted @ 2021-08-25 23:14 司空亦墨 阅读(71) 评论(0) 推荐(0)